結果
| 問題 | No.781 円周上の格子点の数え上げ | 
| コンテスト | |
| ユーザー |  ixTL255 | 
| 提出日時 | 2019-02-06 01:32:08 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 243 bytes | 
| コンパイル時間 | 259 ms | 
| コンパイル使用メモリ | 12,160 KB | 
| 実行使用メモリ | 177,408 KB | 
| 最終ジャッジ日時 | 2025-01-03 00:19:38 | 
| 合計ジャッジ時間 | 29,331 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 TLE * 8 | 
ソースコード
import math a,b = map(int,input().split()) cnt = [0] * 10000010 r = int(math.sqrt(b)) for i in range(-r,r+1): for j in range(-r,r+1): if i*i + j*j <= b: cnt[i*i + j*j]+=1 ans = 0 for i in range(a,b+1): ans = max(ans, cnt[i]) print (ans)
