結果
| 問題 | No.781 円周上の格子点の数え上げ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-12 17:50:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 256 bytes |
| 記録 | |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 82,032 KB |
| 実行使用メモリ | 217,392 KB |
| 最終ジャッジ日時 | 2024-09-23 04:08:53 |
| 合計ジャッジ時間 | 3,276 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 3 |
ソースコード
x,y = map(int,input().split())
ans = 0
dp = [0]*(y+1)
Y = int(y**0.5+50)
for i in range(1,Y+1):
tmp = i**2
for j in range(1,Y+1):
idx = tmp+j**2
if idx > y:
break
dp[idx] += 1
#print(dp)
print(max(dp[x:y+1])*4)