Scroll indicator done
728x90

https://www.acmicpc.net/problem/2553


N = int(input())
f = 1
for i in range(1, N+1):
   f *= i
   f %= 1000000000000
   while f % 10 == 0:
        f /= 10
print(int(f % 10))
728x90

'BAEKJOON > Python' 카테고리의 다른 글

[B18111][마인크래프트][python]  (0) 2021.06.07
[B1744][수 묶기][python]  (0) 2021.03.26
[B2775][부녀회장이 될테야][python]  (0) 2021.03.23
[B2108][통계학][python]  (0) 2021.03.19
[B1929][소수 구하기][python]  (0) 2021.03.19