結果

問題 No.1944 ∞
ユーザー ks2mks2m
提出日時 2022-05-20 23:53:06
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 738 bytes
コンパイル時間 2,368 ms
コンパイル使用メモリ 74,952 KB
実行使用メモリ 64,312 KB
最終ジャッジ日時 2024-09-20 10:19:02
合計ジャッジ時間 6,111 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
49,748 KB
testcase_01 AC 51 ms
50,088 KB
testcase_02 AC 50 ms
50,096 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 50 ms
50,080 KB
testcase_06 AC 50 ms
50,212 KB
testcase_07 AC 50 ms
50,248 KB
testcase_08 AC 52 ms
50,320 KB
testcase_09 WA -
testcase_10 AC 51 ms
50,200 KB
testcase_11 AC 50 ms
50,252 KB
testcase_12 AC 52 ms
50,188 KB
testcase_13 AC 50 ms
50,376 KB
testcase_14 AC 51 ms
50,192 KB
testcase_15 AC 271 ms
64,312 KB
testcase_16 AC 107 ms
52,224 KB
testcase_17 WA -
testcase_18 AC 94 ms
51,592 KB
testcase_19 AC 72 ms
50,704 KB
testcase_20 AC 95 ms
51,572 KB
testcase_21 AC 92 ms
51,304 KB
testcase_22 AC 83 ms
51,256 KB
testcase_23 AC 62 ms
50,256 KB
testcase_24 AC 80 ms
51,076 KB
testcase_25 AC 83 ms
51,816 KB
testcase_26 AC 99 ms
52,140 KB
testcase_27 AC 97 ms
51,944 KB
testcase_28 AC 91 ms
51,528 KB
testcase_29 AC 60 ms
49,868 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 207 ms
63,720 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