結果

問題 No.234 めぐるはめぐる (4)
ユーザー lam6er
提出日時 2025-04-15 22:27:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 577 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 81,852 KB
実行使用メモリ 52,708 KB
最終ジャッジ日時 2025-04-15 22:29:31
合計ジャッジ時間 746 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

# The sequence A003436 values for n from 0 to 13 (since input N can be up to 12, which corresponds to n = N+1)
a003436 = [
    1,  # n=0
    1,  # n=1
    1,  # n=2
    11,  # n=3 (N=2)
    47,  # n=4 (N=3)
    641,  # n=5 (N=4)
    128967,  # n=6 (N=5)
    90321927,  # n=7 (N=6)
    168926862111,  # n=8 (N=7)
    1123983513508231,  # n=9 (N=8)
    2600471645574594503,  # n=10 (N=9)
    196715208179428463265519,  # n=11 (N=10)
    50952612367102603884693734607,  # n=12 (N=11)
    54281543903933741274215443483895951  # n=13 (N=12)
]

N = int(input())
print(a003436[N + 1])
0