結果

問題 No.2043 Ohuton and Makura
ユーザー とりゐとりゐ
提出日時 2022-08-19 22:08:45
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 251 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 252,776 KB
最終ジャッジ日時 2024-04-17 00:50:05
合計ジャッジ時間 23,280 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,528 KB
testcase_01 AC 43 ms
51,968 KB
testcase_02 AC 1,138 ms
168,448 KB
testcase_03 AC 1,030 ms
165,160 KB
testcase_04 AC 1,887 ms
228,856 KB
testcase_05 AC 1,246 ms
173,240 KB
testcase_06 AC 129 ms
86,296 KB
testcase_07 TLE -
testcase_08 AC 205 ms
88,724 KB
testcase_09 AC 1,270 ms
172,800 KB
testcase_10 AC 1,754 ms
218,336 KB
testcase_11 AC 1,198 ms
171,776 KB
testcase_12 AC 40 ms
51,968 KB
testcase_13 TLE -
testcase_14 AC 39 ms
52,224 KB
testcase_15 AC 38 ms
51,968 KB
testcase_16 AC 39 ms
51,712 KB
testcase_17 TLE -
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,s=map(int,input().split())
div=[[] for i in range(s+1)]
for i in range(1,s+1):
  for j in range(i,s+1,i):
    div[j].append(i)

ans=0
for i in range(1,s+1):
  for j in div[i]:
    k=i//j
    if j<=a and k<=b:
      ans+=(a-j+1)*(b-k+1)

print(ans)
0