結果

問題 No.1944 ∞
ユーザー MasKoaTSMasKoaTS
提出日時 2022-05-20 22:03:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 855 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 81,708 KB
実行使用メモリ 118,812 KB
最終ジャッジ日時 2023-10-20 12:44:14
合計ジャッジ時間 6,587 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
85,684 KB
testcase_01 AC 133 ms
85,688 KB
testcase_02 AC 133 ms
85,688 KB
testcase_03 AC 135 ms
85,692 KB
testcase_04 AC 132 ms
85,692 KB
testcase_05 WA -
testcase_06 AC 137 ms
85,688 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 133 ms
85,688 KB
testcase_10 WA -
testcase_11 AC 133 ms
85,688 KB
testcase_12 AC 134 ms
85,692 KB
testcase_13 AC 134 ms
85,552 KB
testcase_14 AC 133 ms
85,688 KB
testcase_15 AC 180 ms
118,812 KB
testcase_16 AC 144 ms
88,472 KB
testcase_17 AC 145 ms
88,072 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 146 ms
88,300 KB
testcase_21 WA -
testcase_22 AC 136 ms
86,180 KB
testcase_23 AC 139 ms
86,176 KB
testcase_24 AC 135 ms
86,176 KB
testcase_25 AC 144 ms
88,336 KB
testcase_26 AC 145 ms
88,344 KB
testcase_27 AC 146 ms
88,320 KB
testcase_28 AC 137 ms
86,172 KB
testcase_29 AC 135 ms
86,180 KB
testcase_30 AC 148 ms
88,332 KB
testcase_31 AC 134 ms
86,176 KB
testcase_32 AC 152 ms
88,288 KB
testcase_33 AC 176 ms
116,728 KB
testcase_34 AC 178 ms
116,732 KB
testcase_35 AC 177 ms
116,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from functools import cmp_to_key
import math
import sys
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10 ** 6)
inp = sys.stdin.readline
input = lambda : inp().rstrip()
getN = lambda : int(inp())
getNs = lambda : map(int, inp().split())
getList = lambda :list(map(int, inp().split()))
getStrs = lambda n : [input() for _ in [0] * n]
def yexit(): print("Yes"); exit(0)
def nexit(): print("No"); exit(0)
pi = 3.141592653589793
mod = 1000000007
MOD = 998244353
INF = 4611686018427387903
dx = [1, 0, -1, 0];	dy = [0, 1, 0, -1]


"""
Main Code
"""

n, x, y = getNs()
r = getList()

d = x ** 2 + y ** 2
s = (r[0] + sum(r[1:]) * 2) ** 2
if((n >= 2 or min(r) ** 2 < d) and s >= d):
	yexit()
nexit()
0