結果
| 問題 |
No.1944 ∞
|
| コンテスト | |
| ユーザー |
Akari
|
| 提出日時 | 2022-05-20 22:14:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 399 ms / 2,000 ms |
| コード長 | 384 bytes |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 42,000 KB |
| 最終ジャッジ日時 | 2025-06-20 00:28:06 |
| 合計ジャッジ時間 | 16,718 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 37 |
ソースコード
import sys
import numpy as np
def main():
n, x, y = map(int, input().split())
R = np.fromstring(input(), np.int64, sep=' ')
z = x ** 2 + y ** 2
if n == 1:
print('Yes' if R[0] ** 2 == z else 'No')
else:
R = np.sort(R).tolist()
s = R[0] + 2 * sum(R[1:])
print('Yes' if s ** 2 >= z else 'No')
if __name__ == '__main__':
main()
Akari