結果
| 問題 | 
                            No.1944 ∞
                             | 
                    
| コンテスト | |
| ユーザー | 
                             gew1fw
                         | 
                    
| 提出日時 | 2025-06-12 14:14:55 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 467 bytes | 
| コンパイル時間 | 236 ms | 
| コンパイル使用メモリ | 82,104 KB | 
| 実行使用メモリ | 103,716 KB | 
| 最終ジャッジ日時 | 2025-06-12 14:15:00 | 
| 合計ジャッジ時間 | 2,716 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 20 WA * 16 | 
ソースコード
import math
n, x, y = map(int, input().split())
r = list(map(int, input().split()))
if n == 1:
    if x == 0 and y == 0:
        print("Yes")
    else:
        print("No")
elif n == 2:
    s = r[0] + r[1]
    d = math.hypot(x, y)
    if abs(d - s) < 1e-9:
        print("Yes")
    else:
        print("No")
else:
    s = 0
    for i in range(n-1):
        s += r[i] + r[i+1]
    d = math.hypot(x, y)
    if d <= s:
        print("Yes")
    else:
        print("No")
            
            
            
        
            
gew1fw