結果

問題 No.2043 Ohuton and Makura
ユーザー a aa a
提出日時 2022-10-03 01:13:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 8,020 KB
最終ジャッジ日時 2023-08-26 22:38:49
合計ジャッジ時間 5,956 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,864 KB
testcase_01 AC 14 ms
7,840 KB
testcase_02 AC 132 ms
8,020 KB
testcase_03 AC 29 ms
7,896 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 65 ms
7,944 KB
testcase_07 AC 568 ms
7,836 KB
testcase_08 AC 85 ms
7,900 KB
testcase_09 AC 154 ms
7,900 KB
testcase_10 AC 256 ms
7,900 KB
testcase_11 WA -
testcase_12 AC 16 ms
7,908 KB
testcase_13 AC 16 ms
7,976 KB
testcase_14 AC 16 ms
7,888 KB
testcase_15 AC 16 ms
7,880 KB
testcase_16 AC 15 ms
7,924 KB
testcase_17 AC 609 ms
7,880 KB
testcase_18 AC 15 ms
7,872 KB
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a,b,s=list(map(int,input().split ()))
n=0
for i in range(1,s+1):
    bm=min(max(math.floor(s/i),0),b)
    n+=int((a-i+1)*(((b+1)*bm)-(bm*(bm+1)*0.5)))
    if i==a:
        break
print(n)
0