結果

問題 No.1491 銀将
ユーザー hir355hir355
提出日時 2021-04-30 21:29:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 156 bytes
コンパイル時間 1,673 ms
コンパイル使用メモリ 86,216 KB
実行使用メモリ 71,252 KB
最終ジャッジ日時 2023-09-26 04:28:37
合計ジャッジ時間 3,682 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,092 KB
testcase_01 AC 71 ms
70,932 KB
testcase_02 AC 70 ms
71,160 KB
testcase_03 AC 70 ms
70,912 KB
testcase_04 AC 71 ms
70,920 KB
testcase_05 AC 71 ms
71,080 KB
testcase_06 AC 72 ms
71,208 KB
testcase_07 AC 71 ms
71,052 KB
testcase_08 AC 72 ms
71,068 KB
testcase_09 AC 71 ms
71,252 KB
testcase_10 AC 72 ms
71,196 KB
testcase_11 AC 71 ms
71,196 KB
testcase_12 AC 70 ms
71,084 KB
testcase_13 AC 70 ms
71,192 KB
testcase_14 AC 71 ms
71,056 KB
testcase_15 AC 71 ms
71,056 KB
testcase_16 AC 70 ms
70,900 KB
testcase_17 AC 69 ms
70,772 KB
testcase_18 AC 72 ms
71,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
if k == 0:
    print(1)
elif k == 1:
    print(6)
elif k == 2:
    print(18)
else:
    print(6 + 12 * (k - 1) + 8 * (k - 2) * (k - 1) // 2)
0