# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
13633 | baneling100 | 팩토리얼 세제곱들의 합 (YDX14_fact) | C++98 | 0 ms | 1084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int N, K, Table[4][5]={{},{0,2,4,1,4},{0,2,6,2,8},{0,2,1,6,5}};
int main(void) {
scanf("%d %d",&N,&K);
if(K) {
if(N>4) N=4;
printf("%d",Table[K][N]);
}
else {
N++;
while(!(N%10)) N/=10;
N%=10;
printf("%d",N);
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |