結果

問題 No.1944 ∞
ユーザー harurunharurun
提出日時 2022-05-20 22:37:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,624 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,016 KB
実行使用メモリ 35,056 KB
最終ジャッジ日時 2023-10-20 13:23:21
合計ジャッジ時間 2,701 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,320 KB
testcase_01 AC 30 ms
10,320 KB
testcase_02 AC 29 ms
10,320 KB
testcase_03 AC 29 ms
10,320 KB
testcase_04 AC 29 ms
10,320 KB
testcase_05 AC 29 ms
10,320 KB
testcase_06 AC 28 ms
10,320 KB
testcase_07 AC 29 ms
10,320 KB
testcase_08 AC 29 ms
10,320 KB
testcase_09 AC 28 ms
10,320 KB
testcase_10 AC 29 ms
10,320 KB
testcase_11 AC 29 ms
10,320 KB
testcase_12 AC 29 ms
10,320 KB
testcase_13 AC 28 ms
10,320 KB
testcase_14 AC 29 ms
10,320 KB
testcase_15 AC 112 ms
35,056 KB
testcase_16 AC 35 ms
12,056 KB
testcase_17 AC 32 ms
11,224 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 32 ms
11,504 KB
testcase_21 WA -
testcase_22 AC 32 ms
10,996 KB
testcase_23 AC 30 ms
10,604 KB
testcase_24 AC 30 ms
10,724 KB
testcase_25 AC 33 ms
11,560 KB
testcase_26 AC 32 ms
11,612 KB
testcase_27 AC 34 ms
11,588 KB
testcase_28 AC 32 ms
11,128 KB
testcase_29 AC 31 ms
10,544 KB
testcase_30 AC 32 ms
11,548 KB
testcase_31 AC 32 ms
11,032 KB
testcase_32 AC 31 ms
11,404 KB
testcase_33 AC 78 ms
15,364 KB
testcase_34 AC 78 ms
15,364 KB
testcase_35 AC 78 ms
15,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

class INPUT:
  def __init__(self):
    self._l=open(0).read().split()
    self._length=len(self._l)
    self._index=0
    return

  def stream(self,k=1,f=int,f2=False):
    assert(-1<k)
    if self._length==self._index or self._length-self._index<k:
      raise Exception("There is no input!")
    elif f!=str:
      if k==0:
        ret=list(map(f,self._l[self._index:]))
        self._index=self._length
        return ret
      if k==1 and not f2:
        ret=f(self._l[self._index])
        self._index+=1
        return ret
      if k==1 and f2:
        ret=[f(self._l[self._index])]
        self._index+=1
        return ret
      ret=[]
      for _ in [0]*k:
        ret.append(f(self._l[self._index]))
        self._index+=1
      return ret
    else:
      if k==0:
        ret=list(self._l[self._index:])
        self._index=self._length
        return ret
      if k==1 and not f2:
        ret=self._l[self._index]
        self._index+=1
        return ret
      if k==1 and f2:
        ret=[self._l[self._index]]
        self._index+=1
        return ret
      ret=[]
      for _ in [0]*k:
        ret.append(self._l[self._index])
        self._index+=1
      return ret
pin=INPUT().stream

#pin(number[default:1],f[default:int],f2[default:False])
#if number==0 -> return left all
#listを変数で受け取るとき、必ずlistをTrueにすること。


def main():
  N,X,Y=pin(3)
  R=pin(0)
  S=X*X+Y*Y
  if N==1:
    if R[0]**2==S:
      print("Yes")
    else:
      print("No")
    return
  t=R[0]
  for i in range(1,N):
    t+=2*R[i]
  if t*t>=S:
    print("Yes")
  else:
    print("No")
  return

main()
0