結果
問題 |
No.2043 Ohuton and Makura
|
ユーザー |
![]() |
提出日時 | 2022-08-19 21:59:39 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 493 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 82,008 KB |
実行使用メモリ | 82,876 KB |
最終ジャッジ日時 | 2024-10-08 08:38:07 |
合計ジャッジ時間 | 9,030 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | TLE * 2 -- * 16 |
ソースコード
A,B,S=map(int,input().split()) def make_divisors(n): lower_divisors , upper_divisors = [], [] i = 1 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] x=0 for j in range(1,S+1): T=make_divisors(j) for i in range(len(T)): a=T[i] b=j//T[i] c=max(0,A-a+1)*max(0,B-b+1) x+=c print(x)