結果

問題 No.2043 Ohuton and Makura
ユーザー KudeKude
提出日時 2022-08-19 21:40:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 62,592 KB
最終ジャッジ日時 2024-04-17 00:20:46
合計ジャッジ時間 2,099 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,968 KB
testcase_01 AC 39 ms
51,968 KB
testcase_02 AC 52 ms
60,032 KB
testcase_03 AC 46 ms
59,520 KB
testcase_04 AC 56 ms
61,696 KB
testcase_05 AC 54 ms
60,672 KB
testcase_06 AC 48 ms
60,944 KB
testcase_07 AC 53 ms
58,752 KB
testcase_08 AC 46 ms
60,160 KB
testcase_09 AC 50 ms
60,928 KB
testcase_10 AC 50 ms
60,800 KB
testcase_11 AC 56 ms
60,864 KB
testcase_12 AC 40 ms
51,968 KB
testcase_13 AC 39 ms
51,968 KB
testcase_14 AC 46 ms
61,312 KB
testcase_15 AC 52 ms
57,600 KB
testcase_16 AC 57 ms
62,592 KB
testcase_17 AC 56 ms
58,880 KB
testcase_18 AC 47 ms
61,824 KB
testcase_19 AC 58 ms
62,464 KB
testcase_20 AC 57 ms
62,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, s = map(int, input().split())
d = [0] * (b + 1)
for h in range(1, b + 1):
    d[h] = d[h - 1] + b - h + 1
ans = 0
for w in range(1, a + 1):
    ans += (a - w + 1) * d[min(s // w, b)]
print(ans)
0