# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
27198 | 2017-07-10T12:36:51 Z | TAMREF | 팩토리얼 세제곱들의 합 (YDX14_fact) | Python 3 | 26 ms | 3 KB |
n,k=list(map(int,input().split())) S=0 fact=[1,1,2,6,24] for i in range(0,max(n,4)+1): S+=fact[i]**k print(S%10) if S%10 else print((S/10)%10)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 25 ms | 3 KB | answer is '4' |
2 | Incorrect | 26 ms | 3 KB | expected '2', found '8' |
3 | Halted | 0 ms | 0 KB | - |