結果

問題 No.1491 銀将
ユーザー seiyu_kyoproseiyu_kyopro
提出日時 2021-10-05 03:30:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 99 bytes
コンパイル時間 480 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 71,704 KB
最終ジャッジ日時 2023-09-30 08:25:13
合計ジャッジ時間 4,185 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,216 KB
testcase_01 AC 77 ms
71,412 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 75 ms
71,704 KB
testcase_10 AC 76 ms
71,548 KB
testcase_11 AC 77 ms
71,324 KB
testcase_12 AC 76 ms
71,220 KB
testcase_13 AC 75 ms
71,424 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
k = int(input())

print(math.ceil((2 * k + 1)**2 / 2) + math.ceil((2 * k - 1)** 2 / 2))
0