結果

問題 No.1944 ∞
ユーザー JF1HNLJF1HNL
提出日時 2022-05-22 20:14:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 444 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 81,828 KB
実行使用メモリ 117,060 KB
最終ジャッジ日時 2023-10-20 17:17:02
合計ジャッジ時間 2,964 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,516 KB
testcase_01 AC 36 ms
53,516 KB
testcase_02 AC 36 ms
53,516 KB
testcase_03 AC 38 ms
53,520 KB
testcase_04 AC 36 ms
53,520 KB
testcase_05 AC 36 ms
53,520 KB
testcase_06 AC 36 ms
53,520 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 37 ms
53,520 KB
testcase_10 WA -
testcase_11 AC 36 ms
53,516 KB
testcase_12 AC 36 ms
53,516 KB
testcase_13 AC 36 ms
53,516 KB
testcase_14 WA -
testcase_15 AC 90 ms
117,060 KB
testcase_16 AC 43 ms
63,748 KB
testcase_17 AC 43 ms
61,700 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 42 ms
61,700 KB
testcase_21 WA -
testcase_22 AC 42 ms
61,700 KB
testcase_23 AC 41 ms
59,652 KB
testcase_24 AC 42 ms
59,652 KB
testcase_25 AC 42 ms
61,700 KB
testcase_26 AC 42 ms
61,700 KB
testcase_27 AC 42 ms
61,700 KB
testcase_28 AC 42 ms
61,700 KB
testcase_29 AC 41 ms
59,652 KB
testcase_30 AC 42 ms
61,700 KB
testcase_31 AC 43 ms
61,700 KB
testcase_32 AC 43 ms
61,700 KB
testcase_33 AC 82 ms
111,504 KB
testcase_34 AC 81 ms
111,504 KB
testcase_35 AC 91 ms
111,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x, y = list(map(int, input().split()))
ri = list(map(int, input().split()))

def debug(*e):
  if "localdebug" in globals():
    print("debug", *e)

if n == 1:
  print("Yes" if x ** 2 + y ** 2 == ri[0] else "No")
  exit()

ri = [2 * val if index != 0 else val for index, val in enumerate(ri)]

sumri = sum(ri)

debug(x ** 2 + y ** 2, sumri ** 2)

smallri = 2 * ri[0] - sumri

print("Yes" if smallri <= x ** 2 + y ** 2 <= sumri ** 2 else "No")
0