Cod sursa(job #1536885)
| Utilizator | Data | 26 noiembrie 2015 19:11:59 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <fstream>
unsigned long long n,s,i;
using namespace std;
int main() {
ifstream fin("fact.in");
ofstream fout("fact.out");
fin>>n;
while(i<n){
i+=5;
s+=(n%5);
}
fout<<i;
}
