結果

問題 No.2043 Ohuton and Makura
ユーザー gr1msl3ygr1msl3y
提出日時 2022-08-25 22:55:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 75,928 KB
最終ジャッジ日時 2024-04-21 05:20:26
合計ジャッジ時間 2,695 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
52,324 KB
testcase_01 AC 44 ms
52,464 KB
testcase_02 AC 86 ms
75,792 KB
testcase_03 AC 84 ms
75,616 KB
testcase_04 AC 99 ms
75,928 KB
testcase_05 AC 84 ms
75,700 KB
testcase_06 AC 56 ms
65,060 KB
testcase_07 AC 99 ms
75,528 KB
testcase_08 AC 60 ms
66,232 KB
testcase_09 AC 87 ms
75,204 KB
testcase_10 AC 97 ms
75,580 KB
testcase_11 AC 76 ms
74,200 KB
testcase_12 AC 42 ms
52,820 KB
testcase_13 AC 94 ms
75,592 KB
testcase_14 AC 40 ms
52,288 KB
testcase_15 AC 39 ms
51,892 KB
testcase_16 AC 38 ms
53,568 KB
testcase_17 AC 93 ms
75,604 KB
testcase_18 AC 96 ms
75,244 KB
testcase_19 AC 99 ms
75,248 KB
testcase_20 AC 98 ms
75,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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