Skip to content

Baekjoon 1964

1. Problem

문제 확인하기

2. Solution

N = int(input())
ans = 5
dot = 7
for i in range(N - 1):
    ans += dot
    dot += 3
    ans %= 45678
print(ans)