Cod sursa(job #1561743)
Utilizator | Data | 4 ianuarie 2016 14:55:25 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.36 kb |
#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
char s[100000000];
int nr;
int main()
{
ifstream fin("text.in");
fin.getline(s,100000000);
char *p=strtok(s," -.,<>?/\\;:\'\"!~");
while(p)
{
nr++;
p=strtok(0," -.,<>?/\\;:\'\"!~");
}
ofstream fout("text.out");
fout<<nr;
return 0;
}