Submission #27201

# Submission time Handle Problem Language Result Execution time Memory
27201 2017-07-10T12:40:10 Z TAMREF 팩토리얼 세제곱들의 합 (YDX14_fact) C++11
Compilation error
0 ms 0 KB
def main():
    n,k=list(map(int,input().split()))
    S=0
    fact=[1,1,2,6,24,120,720,5040,40320,362880]
    for i in range(0,min(n,9)+1):
      S+=fact[i]**k
    print(S%10) if S%10 else print((S//10)%10)
main()

Compilation message

fact.cpp:1:1: error: 'def' does not name a type
 def main():
 ^