結果

問題 No.1822 Keima of Shogi
ユーザー kept1994kept1994
提出日時 2022-03-19 14:27:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 82,788 KB
実行使用メモリ 53,572 KB
最終ジャッジ日時 2024-04-15 03:44:51
合計ジャッジ時間 1,137 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,228 KB
testcase_01 AC 35 ms
53,412 KB
testcase_02 AC 34 ms
52,740 KB
testcase_03 AC 35 ms
52,864 KB
testcase_04 AC 36 ms
51,952 KB
testcase_05 AC 45 ms
52,196 KB
testcase_06 AC 35 ms
52,740 KB
testcase_07 AC 33 ms
52,436 KB
testcase_08 AC 34 ms
53,572 KB
testcase_09 AC 34 ms
52,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

def main():
    N = int(input())
    p = N // 2 + 1
    print((1 + p) * p // 2)
    return

if __name__ == '__main__':
    main()
0