結果
| 問題 | 
                            No.781 円周上の格子点の数え上げ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tso_moriri
                         | 
                    
| 提出日時 | 2019-01-13 13:35:33 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 434 bytes | 
| コンパイル時間 | 821 ms | 
| コンパイル使用メモリ | 12,288 KB | 
| 実行使用メモリ | 21,888 KB | 
| 最終ジャッジ日時 | 2024-12-25 22:26:57 | 
| 合計ジャッジ時間 | 16,358 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 WA * 7 TLE * 4 | 
ソースコード
import math
X,Y = map(int,input().split())
counterlist = []
for i in range(X,Y+1):
    counter = 0
    for k in range(math.floor((i/2)**0.5),math.ceil(i**0.5)):
        if (i-k**2)**0.5-math.floor((i-k**2)**0.5)==0.0:
            if k-(i/2)**0.5 == 0.0 or k == 0:
                counter +=0.5
            else:
                counter += 1
        else:
            pass
    counterlist.append(counter)
print(int(max(counterlist))*8)
            
            
            
        
            
tso_moriri