結果

問題 No.2043 Ohuton and Makura
ユーザー a aa a
提出日時 2022-10-03 00:56:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 203 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 12,616 KB
最終ジャッジ日時 2023-08-26 22:24:08
合計ジャッジ時間 22,522 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
12,292 KB
testcase_01 AC 14 ms
7,812 KB
testcase_02 AC 1,725 ms
7,852 KB
testcase_03 AC 1,248 ms
7,804 KB
testcase_04 TLE -
testcase_05 TLE -
testcase_06 AC 308 ms
7,848 KB
testcase_07 TLE -
testcase_08 AC 505 ms
7,808 KB
testcase_09 AC 1,832 ms
7,920 KB
testcase_10 TLE -
testcase_11 AC 1,988 ms
7,812 KB
testcase_12 AC 15 ms
7,848 KB
testcase_13 AC 15 ms
7,812 KB
testcase_14 AC 15 ms
7,816 KB
testcase_15 AC 15 ms
7,936 KB
testcase_16 AC 15 ms
7,760 KB
testcase_17 AC 530 ms
7,812 KB
testcase_18 AC 455 ms
7,812 KB
testcase_19 TLE -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,s=list(map(int,input().split ()))
n=0
for i in range(1,s+1):
    for j in range(1,s+1):
        n+=(a-i+1)*(b-j+1)
        if i*(j+1)>s or j==b:
            break
    if i==a:
        break
print(n)
0