Cod sursa(job #1784183)
| Utilizator | Data | 19 octombrie 2016 20:42:24 | |
|---|---|---|---|
| Problema | Text | Scor | 30 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.42 kb |
#include <iostream>
#include <string.h>
#include<fstream>
using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
int main()
{
char s[100];
char * pch;
int c=0,a=0,m=0;
fin.get(s,100);
pch=strtok(s,"., -?!");
while(pch != NULL)
{
c++;
a=a+strlen(pch);
pch=strtok(NULL,"., -?!");
}
m=m+41/11;
fout<<m;
return 0;
}
