Cod sursa(job #1652744)
| Utilizator | Data | 15 martie 2016 12:52:47 | |
|---|---|---|---|
| Problema | Text | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
char s;
unsigned cuv=0, lit=0;
ifstream f("text.in");
ofstream g("text.out");
while(f.get(s))
{if((s>'a'&& s<'z')||(s>'A'&& s<'Z'))
lit++;
else cuv++;}
g<<lit/cuv;
return 0;
}
