Pagini recente » Cod sursa (job #563136) | Atasamentele paginii Profil luqnq_b | Cod sursa (job #523800) | Cod sursa (job #836670) | 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();
}