結果

問題 No.1822 Keima of Shogi
ユーザー harapeco
提出日時 2022-03-14 15:58:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 141 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 58,712 KB
最終ジャッジ日時 2024-09-20 02:30:26
合計ジャッジ時間 2,531 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 3
tmp = 3
if n == 3:
    print(ans)
else:
    for _ in range((n-3)//2):
        ans += tmp
        tmp += 2
print(ans)
0