結果

問題 No.1944 ∞
ユーザー 👑 KazunKazun
提出日時 2022-04-12 00:28:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 106,932 KB
最終ジャッジ日時 2023-09-09 03:32:28
合計ジャッジ時間 4,401 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,264 KB
testcase_01 AC 69 ms
71,156 KB
testcase_02 AC 69 ms
71,160 KB
testcase_03 AC 68 ms
71,160 KB
testcase_04 AC 74 ms
71,248 KB
testcase_05 AC 69 ms
71,152 KB
testcase_06 AC 68 ms
71,344 KB
testcase_07 AC 70 ms
71,152 KB
testcase_08 AC 70 ms
71,472 KB
testcase_09 AC 71 ms
71,252 KB
testcase_10 AC 71 ms
71,300 KB
testcase_11 AC 69 ms
71,300 KB
testcase_12 AC 70 ms
71,020 KB
testcase_13 AC 69 ms
71,196 KB
testcase_14 AC 70 ms
71,280 KB
testcase_15 AC 117 ms
106,932 KB
testcase_16 AC 76 ms
75,836 KB
testcase_17 AC 75 ms
75,832 KB
testcase_18 AC 74 ms
75,780 KB
testcase_19 AC 73 ms
75,800 KB
testcase_20 AC 73 ms
75,748 KB
testcase_21 AC 74 ms
75,976 KB
testcase_22 AC 74 ms
75,720 KB
testcase_23 AC 73 ms
75,832 KB
testcase_24 AC 73 ms
75,764 KB
testcase_25 AC 75 ms
75,556 KB
testcase_26 AC 73 ms
76,016 KB
testcase_27 AC 75 ms
75,828 KB
testcase_28 AC 73 ms
76,020 KB
testcase_29 AC 75 ms
75,868 KB
testcase_30 AC 75 ms
75,564 KB
testcase_31 AC 77 ms
75,840 KB
testcase_32 AC 76 ms
75,744 KB
testcase_33 AC 105 ms
104,008 KB
testcase_34 AC 104 ms
103,912 KB
testcase_35 AC 102 ms
104,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(N,X,Y,R):
    dist=X*X+Y*Y
    if N==1:
        return dist==R[0]**2
    else:
        return dist<=(2*sum(R)-min(R))**2

N,X,Y=map(int,input().split())
R=list(map(int,input().split()))
print("Yes" if solve(N,X,Y,R) else "No")
0