結果

問題 No.1944 ∞
ユーザー ks2mks2m
提出日時 2022-05-20 23:53:06
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 738 bytes
コンパイル時間 4,118 ms
コンパイル使用メモリ 74,344 KB
実行使用メモリ 68,904 KB
最終ジャッジ日時 2023-10-20 14:49:53
合計ジャッジ時間 8,397 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
52,440 KB
testcase_01 AC 53 ms
53,552 KB
testcase_02 AC 54 ms
53,536 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 54 ms
53,540 KB
testcase_06 AC 54 ms
53,536 KB
testcase_07 AC 53 ms
53,540 KB
testcase_08 AC 53 ms
53,536 KB
testcase_09 WA -
testcase_10 AC 54 ms
52,448 KB
testcase_11 AC 52 ms
52,428 KB
testcase_12 AC 54 ms
53,544 KB
testcase_13 AC 54 ms
53,544 KB
testcase_14 AC 54 ms
53,536 KB
testcase_15 AC 330 ms
68,904 KB
testcase_16 AC 108 ms
55,444 KB
testcase_17 WA -
testcase_18 AC 98 ms
55,292 KB
testcase_19 AC 67 ms
54,388 KB
testcase_20 AC 96 ms
55,396 KB
testcase_21 AC 99 ms
55,288 KB
testcase_22 AC 92 ms
54,672 KB
testcase_23 AC 73 ms
54,388 KB
testcase_24 AC 82 ms
54,420 KB
testcase_25 AC 98 ms
55,376 KB
testcase_26 AC 100 ms
55,376 KB
testcase_27 AC 97 ms
55,060 KB
testcase_28 AC 84 ms
55,032 KB
testcase_29 AC 65 ms
54,396 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 227 ms
67,288 KB
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		long x = Integer.parseInt(sa[1]);
		long y = Integer.parseInt(sa[2]);
		sa = br.readLine().split(" ");
		int[] r = new int[n];
		for (int i = 0; i < n; i++) {
			r[i] = Integer.parseInt(sa[i]);
		}
		br.close();

		long z = x * x + y * y;
		long s = 0;
		for (int i = 0; i < n; i++) {
			s += r[i];
		}
		s *= 2;

		if (s > Integer.MAX_VALUE || s * s >= z) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
0