結果

問題 No.2043 Ohuton and Makura
ユーザー ntudantuda
提出日時 2022-10-08 11:06:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 2,051 ms
コンパイル使用メモリ 86,708 KB
実行使用メモリ 79,948 KB
最終ジャッジ日時 2023-09-04 12:46:33
合計ジャッジ時間 5,162 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,448 KB
testcase_01 AC 73 ms
71,344 KB
testcase_02 AC 85 ms
76,624 KB
testcase_03 AC 79 ms
75,756 KB
testcase_04 AC 91 ms
79,552 KB
testcase_05 AC 87 ms
78,900 KB
testcase_06 AC 78 ms
76,196 KB
testcase_07 AC 84 ms
79,504 KB
testcase_08 AC 80 ms
76,528 KB
testcase_09 AC 87 ms
76,680 KB
testcase_10 AC 86 ms
77,644 KB
testcase_11 AC 89 ms
79,452 KB
testcase_12 AC 74 ms
71,260 KB
testcase_13 AC 75 ms
71,012 KB
testcase_14 AC 75 ms
71,136 KB
testcase_15 AC 80 ms
79,328 KB
testcase_16 AC 82 ms
79,340 KB
testcase_17 AC 82 ms
79,724 KB
testcase_18 AC 90 ms
75,804 KB
testcase_19 AC 92 ms
79,556 KB
testcase_20 AC 93 ms
79,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,S = map(int,input().split())
AA = [0] * (A+1)
for i in range(1,A+1):
    AA[i] = (A - i + 1) + AA[i-1]
ans = 0
for i in range(1,min(S+1,B+1)):
    ans += (B -i + 1) * AA[min(S//i,A)]
print(ans)
0