Pagini recente » Cod sursa (job #2572235) | Cod sursa (job #1447625) | Cod sursa (job #1732349) | Cod sursa (job #1830952) | Cod sursa (job #790650)
Cod sursa(job #790650)
#include <iostream>
#include <fstream>
#include <string.h>
using namespace std;
char s[99999999];
ifstream in("text.in");
ofstream out("text.out");
void citire()
{
cin.get(s,99999999);
strlwr(s);
}
void count()
{
long long int k=0,z=0;
for(register long int i=0;i<strlen(s);i++)
{
if((int)s[i]>=65 and (int)s[i]<=90)
{
k++;
}
else z++;
}
cout<<k/z;
}
int main()
{
citire();
count();
}