Cod sursa(job #1793528)
| Utilizator | Data | 31 octombrie 2016 09:40:01 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <bits/stdc++.h>
using namespace std;
int f(int n){
int rez = 0;
while(n){
rez += n / 5;
n /= 5; }
return rez; };
int main()
{
ifstream f("fact.in");
ofstream g("fact.out");
long long n,p;
f>>p;
g<<5*p;
return 0;
}
