Pagini recente » Rating Onita Andrei Ion (haloandrei) | Rating Chivescu Bogdan-Andrei (bobbychivescu) | Rating Negrea Dumitru (negreadumitru) | Cod sursa (job #1314371) | Cod sursa (job #1382995)
#include <fstream>
#include <string.h>
#include <stdlib.h>
using namespace std;
int main()
{
ifstream fin("text.in");
ofstream fout("text.out");
char s[20000];
int c=0,l=0;
fin.getline(s,20000);
for(int i=0;i<strlen(s);i++)
if(s[i]==' ')c++;
else if(s[i]>='a'&&s[i]<='z')l++;
else if(s[i]>='A'&&s[i]<='Z')l++;
//c++;
fout<<l/c;
}