Pagini recente » Cod sursa (job #1861023) | Cod sursa (job #31024) | Cod sursa (job #26332) | Cod sursa (job #1317915) | Cod sursa (job #2450775)
#include <bits/stdc++.h>
using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
long long lc = 0, nc = 0 , k = 0;
char c;
bool ok = 0;
void citire()
{
while(fin.get(c))
{
if(c>='A'&&c<='z')
{
ok = 1;
lc++;
}
else if(ok==1)
{
ok = 0;
nc++;
}
}
}
void afisare()
{
fout << lc << " " << nc << '\n';
fout << lc/nc;
}
int main()
{
citire();
afisare();
return 0;
}