結果
問題 | No.1944 ∞ |
ユーザー | ygd. |
提出日時 | 2022-05-21 11:26:21 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 967 bytes |
コンパイル時間 | 1,233 ms |
コンパイル使用メモリ | 11,688 KB |
実行使用メモリ | 33,080 KB |
最終ジャッジ日時 | 2023-10-20 15:50:54 |
合計ジャッジ時間 | 3,196 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 27 ms
10,004 KB |
testcase_01 | AC | 25 ms
10,004 KB |
testcase_02 | AC | 25 ms
10,004 KB |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | AC | 26 ms
10,008 KB |
testcase_12 | AC | 26 ms
10,008 KB |
testcase_13 | AC | 28 ms
10,008 KB |
testcase_14 | AC | 27 ms
10,008 KB |
testcase_15 | AC | 85 ms
33,080 KB |
testcase_16 | AC | 31 ms
11,564 KB |
testcase_17 | AC | 27 ms
10,784 KB |
testcase_18 | AC | 27 ms
10,952 KB |
testcase_19 | AC | 26 ms
10,360 KB |
testcase_20 | AC | 28 ms
11,040 KB |
testcase_21 | AC | 28 ms
11,044 KB |
testcase_22 | AC | 26 ms
10,640 KB |
testcase_23 | AC | 26 ms
10,276 KB |
testcase_24 | AC | 28 ms
10,448 KB |
testcase_25 | AC | 29 ms
11,184 KB |
testcase_26 | AC | 29 ms
11,312 KB |
testcase_27 | AC | 28 ms
11,156 KB |
testcase_28 | AC | 29 ms
10,748 KB |
testcase_29 | AC | 27 ms
10,220 KB |
testcase_30 | AC | 30 ms
11,276 KB |
testcase_31 | AC | 32 ms
10,752 KB |
testcase_32 | AC | 29 ms
10,960 KB |
testcase_33 | AC | 62 ms
13,952 KB |
testcase_34 | AC | 62 ms
13,952 KB |
testcase_35 | AC | 60 ms
13,952 KB |
ソースコード
import sys #input = sys.stdin.readline #input = sys.stdin.buffer.readline #文字列はダメ #sys.setrecursionlimit(1000000) #import bisect #import itertools #import random #from heapq import heapify, heappop, heappush #from collections import defaultdict #from collections import deque #import copy #import math #from functools import lru_cache #@lru_cache(maxsize=None) #MOD = pow(10,9) + 7 #MOD = 998244353 #dx = [1,0,-1,0] #dy = [0,1,0,-1] #dx8 = [1,1,0,-1,-1,-1,0,1] #dy8 = [0,1,1,1,0,-1,-1,-1] def main(): N,X,Y = map(int,input().split()) R = list(map(int,input().split())) #円に接するという条件がうまく言い換えられず、解説AC。 if N == 1: if X**2 + Y**2 == R**2: print('Yes') else: print('No') else: lim = sum(R)*2 - min(R) if X**2 + Y**2 <= lim**2: print('Yes') else: print('No') if __name__ == '__main__': main()