結果

問題 No.2043 Ohuton and Makura
ユーザー asumo0729asumo0729
提出日時 2022-08-21 14:59:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 82,276 KB
実行使用メモリ 75,788 KB
最終ジャッジ日時 2024-04-18 12:59:54
合計ジャッジ時間 2,342 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,940 KB
testcase_01 AC 36 ms
53,284 KB
testcase_02 AC 79 ms
75,428 KB
testcase_03 AC 74 ms
75,788 KB
testcase_04 AC 87 ms
75,060 KB
testcase_05 AC 76 ms
74,868 KB
testcase_06 AC 47 ms
63,484 KB
testcase_07 AC 92 ms
75,136 KB
testcase_08 AC 50 ms
66,628 KB
testcase_09 AC 77 ms
75,584 KB
testcase_10 AC 84 ms
75,328 KB
testcase_11 AC 72 ms
75,280 KB
testcase_12 AC 35 ms
52,424 KB
testcase_13 AC 100 ms
74,756 KB
testcase_14 AC 35 ms
52,644 KB
testcase_15 AC 34 ms
52,204 KB
testcase_16 AC 35 ms
51,624 KB
testcase_17 AC 91 ms
75,200 KB
testcase_18 AC 103 ms
75,492 KB
testcase_19 AC 87 ms
74,936 KB
testcase_20 AC 91 ms
75,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, S = map(int, input().split())
ans = 0
for x in range(1, S + 1):
    for y in range(1, S // x + 1):
        ans += max(0, A - x + 1) * max(0, B - y + 1)
print(ans)
0