結果

問題 No.781 円周上の格子点の数え上げ
ユーザー YamadaYamada
提出日時 2019-02-25 22:35:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 173 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 168,840 KB
最終ジャッジ日時 2023-08-28 17:20:06
合計ジャッジ時間 12,990 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,852 KB
testcase_01 AC 15 ms
7,808 KB
testcase_02 AC 15 ms
7,872 KB
testcase_03 AC 15 ms
7,788 KB
testcase_04 AC 15 ms
7,784 KB
testcase_05 AC 15 ms
7,788 KB
testcase_06 AC 25 ms
8,332 KB
testcase_07 AC 38 ms
8,792 KB
testcase_08 TLE -
testcase_09 TLE -
testcase_10 AC 20 ms
8,424 KB
testcase_11 AC 26 ms
9,048 KB
testcase_12 TLE -
testcase_13 TLE -
testcase_14 AC 141 ms
13,616 KB
testcase_15 AC 21 ms
8,260 KB
testcase_16 AC 20 ms
8,328 KB
testcase_17 AC 1,715 ms
100,848 KB
testcase_18 AC 1,580 ms
54,380 KB
testcase_19 AC 1,645 ms
55,524 KB
testcase_20 AC 1,649 ms
55,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X,Y =map(int,input().split())
lis =[0]*(Y+1)
for i in range(1,int(Y**0.5)+1):
    for j in range(int((Y-i**2)**0.5)+1):
        lis[i**2+j**2] += 1
print(max(lis[X:Y+1])*4)
0