結果
| 問題 | No.1944 ∞ |
| コンテスト | |
| ユーザー |
ripity
|
| 提出日時 | 2022-05-20 21:50:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 292 bytes |
| 記録 | |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 103,552 KB |
| 最終ジャッジ日時 | 2024-09-20 07:53:18 |
| 合計ジャッジ時間 | 2,745 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 WA * 3 |
ソースコード
def s(x):
return x*x
n, x, y = map(int, input().split())
r = list(map(int, input().split()))
if n == 1:
if s(x)+s(y) == s(r[0]): print('Yes')
else: print('No')
else:
k = 2*sum(r[1:])
if s(r[0]+k) >= s(x)+s(y) or s(r[0]-k) >= s(x)+s(y): print('Yes')
else: print('No')
ripity