結果

問題 No.2043 Ohuton and Makura
ユーザー rlangevinrlangevin
提出日時 2023-01-11 00:36:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 1,517 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 75,904 KB
最終ジャッジ日時 2023-08-23 11:09:57
合計ジャッジ時間 3,248 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,160 KB
testcase_01 AC 71 ms
71,084 KB
testcase_02 AC 80 ms
75,600 KB
testcase_03 AC 75 ms
75,904 KB
testcase_04 AC 83 ms
75,732 KB
testcase_05 AC 79 ms
75,736 KB
testcase_06 AC 76 ms
75,644 KB
testcase_07 AC 83 ms
75,676 KB
testcase_08 AC 75 ms
75,628 KB
testcase_09 AC 77 ms
75,664 KB
testcase_10 AC 80 ms
75,468 KB
testcase_11 AC 83 ms
75,660 KB
testcase_12 AC 71 ms
71,288 KB
testcase_13 AC 70 ms
71,300 KB
testcase_14 AC 69 ms
71,236 KB
testcase_15 AC 83 ms
75,624 KB
testcase_16 AC 83 ms
75,428 KB
testcase_17 AC 83 ms
75,884 KB
testcase_18 AC 70 ms
71,140 KB
testcase_19 AC 82 ms
75,628 KB
testcase_20 AC 84 ms
75,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, S = map(int, input().split())
ans = 0
for a in range(1, A + 1):
    l = min(B, S//a)
    ans += (B * (B + 1)//2 - (B - l) * (B - l + 1)//2) * (A + 1 - a)
print(ans)
0