Cod sursa(job #1512835)
| Utilizator | Data | 28 octombrie 2015 18:28:40 | |
|---|---|---|---|
| Problema | Factorial | Scor | 5 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <cstdio>
unsigned long long n,s,i;
using namespace std;
int main(int argc, char *argv[]) {
freopen("fact.in", "r", stdin);
freopen("fact.out", "w", stdout);
scanf("%lld", &n);
while(i<n){
i+=5;
s+=(n%5);
}
printf("%lld\n", i);
}