結果

問題 No.1500 Super Knight
ユーザー brthyyjpbrthyyjp
提出日時 2022-03-29 15:27:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 53,792 KB
最終ジャッジ日時 2024-04-25 18:14:32
合計ジャッジ時間 2,443 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,832 KB
testcase_01 AC 36 ms
52,192 KB
testcase_02 AC 34 ms
52,392 KB
testcase_03 AC 34 ms
52,420 KB
testcase_04 AC 35 ms
52,960 KB
testcase_05 AC 33 ms
53,564 KB
testcase_06 AC 34 ms
52,220 KB
testcase_07 AC 33 ms
53,300 KB
testcase_08 AC 35 ms
52,208 KB
testcase_09 AC 33 ms
53,500 KB
testcase_10 AC 32 ms
52,428 KB
testcase_11 AC 34 ms
52,512 KB
testcase_12 AC 33 ms
52,472 KB
testcase_13 AC 33 ms
52,620 KB
testcase_14 AC 33 ms
52,648 KB
testcase_15 AC 35 ms
52,444 KB
testcase_16 AC 36 ms
52,272 KB
testcase_17 AC 34 ms
53,060 KB
testcase_18 AC 34 ms
52,092 KB
testcase_19 AC 34 ms
52,672 KB
testcase_20 AC 37 ms
52,424 KB
testcase_21 AC 34 ms
52,316 KB
testcase_22 AC 35 ms
53,444 KB
testcase_23 AC 35 ms
53,684 KB
testcase_24 AC 34 ms
52,704 KB
testcase_25 AC 32 ms
52,556 KB
testcase_26 AC 33 ms
53,160 KB
testcase_27 AC 35 ms
53,692 KB
testcase_28 AC 33 ms
53,360 KB
testcase_29 AC 33 ms
52,104 KB
testcase_30 AC 33 ms
53,792 KB
testcase_31 AC 34 ms
52,688 KB
testcase_32 AC 33 ms
53,632 KB
testcase_33 AC 34 ms
52,584 KB
testcase_34 AC 33 ms
53,164 KB
権限があれば一括ダウンロードができます

ソースコード

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