Cod sursa(job #3212895)
Utilizator | Data | 12 martie 2024 11:46:56 | |
---|---|---|---|
Problema | Text | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <fstream>
using namespace std;
ifstream in("text.in");
ofstream out("text.out");
int l=0,w=0;
char c;
int main()
{
bool t;
while(in.get(c))
{
if(isalnum(c))
{ w++;
l++;
}
}
out << l/w;
return 0;
}