結果
| 問題 | 
                            No.781 円周上の格子点の数え上げ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tso_moriri
                         | 
                    
| 提出日時 | 2019-01-13 14:02:08 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 415 bytes | 
| コンパイル時間 | 255 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 21,760 KB | 
| 最終ジャッジ日時 | 2024-12-25 22:54:24 | 
| 合計ジャッジ時間 | 17,416 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 WA * 1 TLE * 5 | 
ソースコード
import math
X,Y = map(int,input().split())
counterlist = []
for i in range(X,Y+1):
    counter = 0
    for k in range(math.ceil((i/2)**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