結果

問題 No.781 円周上の格子点の数え上げ
ユーザー convexineqconvexineq
提出日時 2021-03-16 09:50:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 216,192 KB
最終ジャッジ日時 2024-04-25 10:08:17
合計ジャッジ時間 3,649 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 35 ms
51,712 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 43 ms
59,648 KB
testcase_08 WA -
testcase_09 AC 257 ms
137,984 KB
testcase_10 AC 43 ms
59,008 KB
testcase_11 AC 42 ms
59,904 KB
testcase_12 AC 297 ms
180,864 KB
testcase_13 AC 326 ms
216,192 KB
testcase_14 AC 49 ms
64,768 KB
testcase_15 WA -
testcase_16 AC 42 ms
58,496 KB
testcase_17 AC 203 ms
152,448 KB
testcase_18 WA -
testcase_19 AC 169 ms
107,520 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y = map(int,input().split())

n = y
r = [0]*(n+1)
for i in range(1,n+1):
    v = i*i
    if v >= n: break
    for j in range(n+1):
        if v+j*j >= n: break
        r[v+j*j] += 1

print(max(r[x:y+1])*4)
0