Pagini recente » Cod sursa (job #202858) | Cod sursa (job #543873) | Cod sursa (job #351859) | Diferente pentru problema/xp intre reviziile 13 si 12 | Cod sursa (job #2360697)
#include <iostream>
#include <fstream>
typedef long long LL;
using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
char c;
LL cuv, nr, l;
bool check(char n)
{return ((c>='a' && c<='z') || (c>='A' && c<='Z'));}
int main()
{
while(fin.get(c))
{
if(check(c))
{
if(l==0)
cuv++;
nr++;
l=1;
}
else{l=0;}
}
fout<<nr/cuv;
return 0;
}