Cod sursa(job #382416)
Utilizator | Data | 13 ianuarie 2010 17:46:42 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.35 kb |
#include<stdio.h>
inline bool pac(char c)
{
return(c>='a' && c<='z' || c>='A' && c<='Z') ;
}
int main()
{
char n;
int lit=0,cuv=0;
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
while(scanf("%c",&n)!=EOF)
{
if(pac(n)==true)
lit++;
if(pac(n)==true && pac(n-1)==false)
cuv++;
}
printf("%d",lit/cuv);
}