create dev channel

This commit is contained in:
2025-05-07 04:44:30 +09:00
parent 603fca2b20
commit 16a8e59450
426 changed files with 643 additions and 36 deletions

View File

@@ -0,0 +1,21 @@
DIVIDER = 10**9 + 7
def progress(m):
return (
(m[1] + m[2] + m[3] + m[4]) % DIVIDER,
(m[3] + m[4] + m[0]) % DIVIDER,
(m[4] + m[0]) % DIVIDER,
(m[1] + m[0]) % DIVIDER,
(m[1] + m[2] + m[0]) % DIVIDER,
)
if __name__ == "__main__":
M = (1, 1, 1, 1, 1)
# M2 = (1 + 1 + 1, )
N = int(input())
for _ in range(1, N):
M = progress(M)
print(sum(M) % DIVIDER)