結果

問題 No.1944 ∞
ユーザー KudeKude
提出日時 2022-05-20 21:47:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 483 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 104,300 KB
最終ジャッジ日時 2023-10-20 12:15:32
合計ジャッジ時間 3,244 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 39 ms
53,392 KB
testcase_04 AC 39 ms
53,392 KB
testcase_05 AC 39 ms
53,392 KB
testcase_06 AC 38 ms
53,392 KB
testcase_07 AC 38 ms
53,392 KB
testcase_08 AC 39 ms
53,392 KB
testcase_09 AC 38 ms
53,392 KB
testcase_10 AC 38 ms
53,392 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n, x, y = map(int, input().split())
    r = sorted(map(int, input().split()))
    if n == 1:
        return x ** 2 + y ** 2 == r[0] ** 2
    mn = max(0, r[-1] - 2 * sum(r[:-1]))
    mx = 2 * sum(r) - r[-1]
    print(mn, mx)
    return mn ** 2 <= x ** 2 + y ** 2 <= mx ** 2
print('Yes' if solve() else 'No')
0