結果

問題 No.781 円周上の格子点の数え上げ
ユーザー daku9640daku9640
提出日時 2019-01-17 22:38:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 164,216 KB
最終ジャッジ日時 2023-09-14 02:06:32
合計ジャッジ時間 4,545 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
85,800 KB
testcase_01 AC 129 ms
85,776 KB
testcase_02 AC 128 ms
85,840 KB
testcase_03 AC 129 ms
85,832 KB
testcase_04 AC 126 ms
85,876 KB
testcase_05 AC 129 ms
85,800 KB
testcase_06 AC 129 ms
85,788 KB
testcase_07 AC 128 ms
85,872 KB
testcase_08 WA -
testcase_09 AC 128 ms
85,928 KB
testcase_10 AC 129 ms
86,268 KB
testcase_11 AC 130 ms
86,504 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 128 ms
85,984 KB
testcase_16 AC 129 ms
85,760 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ans = [0] * int(1e7 + 1)
for i in range(1, 224):
    for j in range(0, 224):
        ans[i ** 2 + j ** 2] += 1
x, y = map(int, input().split())
print(max(ans[x:y + 1]) * 4)
0