結果
| 問題 |
No.781 円周上の格子点の数え上げ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-12 17:53:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 269 ms / 2,000 ms |
| コード長 | 254 bytes |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 82,172 KB |
| 実行使用メモリ | 216,516 KB |
| 最終ジャッジ日時 | 2024-09-23 04:10:43 |
| 合計ジャッジ時間 | 3,388 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
x,y = map(int,input().split())
ans = 0
dp = [0]*(y+1)
Y = int(y**0.5+50)
for i in range(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)