結果
| 問題 | No.781 円周上の格子点の数え上げ |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-01-19 20:08:20 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
TLE
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 64,828 KB |
| 実行使用メモリ | 256,344 KB |
| 最終ジャッジ日時 | 2026-10-15 09:35:44 |
| 合計ジャッジ時間 | 7,241 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 TLE * 1 |
ソースコード
x, y = map(int, input().split())
i = 1
squ = []
while i * i <= y:
squ.append(i * i)
i += 1
cnt = {}
l = len(squ)
for s in [0] + squ:
for q in squ:
if x <= s + q <= y:
cnt[s + q] = cnt.get(s + q, 0) + 1
ans = max([0] + list(cnt.values()))
print(4 * ans)