# import sys
#
# sys.setrecursionlimit(10000000)
#
# class block:
# def __init__(self, n):
# self.n = n
# self.memo = [0]*10000000
# self.viewer(n)
#
# def viewer(self, n):
# print(self.mainBlock(n)%100007)
#
# def mainBlock(self, x):
# if x == 1:
# self.memo[x] = 1
# return self.memo[x]
#
# if self.memo[x]:
# return self.memo[x]
#
# self.memo[x] = self.mainBlock(x-3)%100007 + self.mainBlock(x-1)%100007
# return self.memo[x]
#
# a = block(int(input()))
class block:
def __init__(self):
self.a = int(input())
self.num = 1
self.caculate()
def caculate(self):
if (self.a%3) != 0:
print('0')
else:
for i in range(0, 99999, 3):
if i == self.a:
break
else:
self.num *= i
print(self.num)
a = block()
top of page

기능을 테스트하려면 라이브 사이트로 이동하세요.
211228
211228
댓글 0개
좋아요
댓글(0)
bottom of page