結果

問題 No.1500 Super Knight
ユーザー brthyyjp
提出日時 2022-03-29 15:27:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-11-08 05:40:56
合計ジャッジ時間 3,012 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
mod = 10**9+7

if n == 0:
    print(1)
elif n == 1:
    print(12)
elif n == 2:
    print(65)
else:
    ans = 17*n**2+6*n+1
    ans %= mod
    print(ans)
0