結果

問題 No.71 そろばん
ユーザー akanayaakanaya
提出日時 2020-03-28 13:43:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 181 ms / 5,000 ms
コード長 154 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-08-30 17:37:52
合計ジャッジ時間 4,423 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,860 KB
testcase_01 AC 15 ms
7,856 KB
testcase_02 AC 169 ms
7,940 KB
testcase_03 AC 75 ms
7,908 KB
testcase_04 AC 114 ms
7,824 KB
testcase_05 AC 145 ms
7,880 KB
testcase_06 AC 171 ms
7,860 KB
testcase_07 AC 109 ms
7,864 KB
testcase_08 AC 87 ms
7,800 KB
testcase_09 AC 157 ms
7,832 KB
testcase_10 AC 106 ms
7,880 KB
testcase_11 AC 37 ms
7,872 KB
testcase_12 AC 61 ms
7,860 KB
testcase_13 AC 158 ms
7,860 KB
testcase_14 AC 77 ms
7,860 KB
testcase_15 AC 129 ms
7,916 KB
testcase_16 AC 35 ms
7,860 KB
testcase_17 AC 81 ms
7,820 KB
testcase_18 AC 134 ms
7,768 KB
testcase_19 AC 181 ms
7,856 KB
testcase_20 AC 164 ms
7,912 KB
testcase_21 AC 80 ms
7,772 KB
testcase_22 AC 129 ms
7,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

result = -1
for i in range(n // 2 + 1):
    v = (i + 1) * (n - i + 1)
    if result < v:
        result = v
        
print(result - 1)

0