結果
| 問題 | 
                            No.98 円を描こう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kutsutama
                         | 
                    
| 提出日時 | 2019-01-16 12:51:24 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 226 bytes | 
| コンパイル時間 | 157 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-06-27 20:27:13 | 
| 合計ジャッジ時間 | 1,072 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 2 | 
| other | AC * 1 WA * 5 | 
ソースコード
import math
xp, yp = [int(x) for x in input().split()]
res = 0
r2 = 4 * xp * xp + yp * yp
r_can = int(math.floor(math.sqrt(r2)))
for r in range(r_can, 4 * 10**4):
    if r * r > r2:
        res = r
        break
print(res)
            
            
            
        
            
kutsutama