Cod sursa(job #2279289)
Utilizator | Data | 9 noiembrie 2018 12:07:01 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Lista lui wefgef | Marime | 0.26 kb |
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char s[101],*p;
int ct=0;
cin.get(s,101);
p=strtok(s," .");
while(p)
{
ct++;
p=strtok(NULL," .");
}
cout<<ct;
return 0;
}