Cod sursa(job #1986952)
Utilizator | Data | 29 mai 2017 13:00:43 | |
---|---|---|---|
Problema | Factorial | Scor | 10 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.33 kb |
#include <stdio.h>
typedef unsigned long long TYPE;
TYPE find_n(TYPE p) {
// P N
// 0 1
// 2 10
// 10 45
if (p == 0) {
return 1;
}
TYPE p5 = 5 * p;
return p5;
}
int main() {
freopen("fact.in", "r", stdin);
freopen("fact.out", "w", stdout);
TYPE P;
scanf("%llu", &P);
TYPE n = find_n(P);
printf("%llu\n", n);
return 0;
}