Submission #27197

#TimeUsernameProblemLanguageResultExecution timeMemory
27197TAMREF팩토리얼 세제곱들의 합 (YDX14_fact)Cpython 3
0 / 1
27 ms3 KiB
n,k=list(map(int,input().split())) S=0 fact=[1,1,2,6,24] for i in range(1,max(n,4)+1): S+=fact[i]**k print(S%10) if S%10 else print((S/10)%10)
#Verdict Execution timeMemoryGrader output
Fetching results...