Pagini recente » Cod sursa (job #1343646) | Cod sursa (job #824499) | Cod sursa (job #3166459) | Cod sursa (job #1684283) | 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();
}