blob: a79d2b7f119a480a87cd41d4dfd5a2dbe310c8ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <iostream>
/*
*
*
*
*
*/
uint64_t fact_i(void) {
uint64_t val;
if(std::cin >> val) {} else { return 0; }
uint64_t ret = 1;
while(val > 1) {
ret *= val--;
}
return ret;
}
|