結果
問題 | No.781 円周上の格子点の数え上げ |
ユーザー | chun1182 |
提出日時 | 2019-01-11 22:24:34 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 38,592 KB |
最終ジャッジ日時 | 2024-05-07 15:06:42 |
合計ジャッジ時間 | 12,297 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 630 ms
38,424 KB |
testcase_01 | AC | 637 ms
31,484 KB |
testcase_02 | AC | 647 ms
31,596 KB |
testcase_03 | AC | 645 ms
31,404 KB |
testcase_04 | AC | 651 ms
31,496 KB |
testcase_05 | AC | 646 ms
31,408 KB |
testcase_06 | AC | 650 ms
31,420 KB |
testcase_07 | AC | 694 ms
31,408 KB |
testcase_08 | WA | - |
testcase_09 | AC | 653 ms
31,500 KB |
testcase_10 | AC | 650 ms
31,296 KB |
testcase_11 | AC | 703 ms
31,424 KB |
testcase_12 | TLE | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
ソースコード
kai=[i**2 for i in range(1001)] d=dict() for i in range(1000): for j in range(1,1000): d[kai[i]+kai[j]]=d.get(kai[i]+kai[j],0)+1 a,b=map(int, input().split()) ans=0 for i in range(a,b+1): ans=max(ans,d.get(i,0)) print(ans*4)