Cod sursa(job #1181832)
Utilizator | Data | 3 mai 2014 22:18:52 | |
---|---|---|---|
Problema | Factorial | Scor | 5 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f;
ofstream g;
long int n,k,p,i;
main()
{
f.open("fact.in");
g.open("fact.out");
f>>p;
i=0;
while(p>0){i++;p/=10;}
g<<i*5;
g.close();
}