結果

問題 No.669 対決!!! 飲み比べ
ユーザー uafr_csuafr_cs
提出日時 2018-03-23 22:42:39
言語 Java19
(openjdk 21)
結果
AC  
実行時間 186 ms / 2,000 ms
コード長 437 bytes
コンパイル時間 4,385 ms
コンパイル使用メモリ 76,716 KB
実行使用メモリ 56,180 KB
最終ジャッジ日時 2023-09-07 07:43:01
合計ジャッジ時間 7,191 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,900 KB
testcase_01 AC 124 ms
55,820 KB
testcase_02 AC 124 ms
56,124 KB
testcase_03 AC 124 ms
56,072 KB
testcase_04 AC 124 ms
55,716 KB
testcase_05 AC 123 ms
56,180 KB
testcase_06 AC 123 ms
55,792 KB
testcase_07 AC 123 ms
55,696 KB
testcase_08 AC 123 ms
55,636 KB
testcase_09 AC 127 ms
55,932 KB
testcase_10 AC 122 ms
55,880 KB
testcase_11 AC 124 ms
56,036 KB
testcase_12 AC 125 ms
55,924 KB
testcase_13 AC 130 ms
55,876 KB
testcase_14 AC 123 ms
56,004 KB
testcase_15 AC 124 ms
55,764 KB
testcase_16 AC 138 ms
55,472 KB
testcase_17 AC 125 ms
56,080 KB
testcase_18 AC 132 ms
55,900 KB
testcase_19 AC 126 ms
55,792 KB
testcase_20 AC 125 ms
55,616 KB
testcase_21 AC 127 ms
55,752 KB
testcase_22 AC 137 ms
56,096 KB
testcase_23 AC 186 ms
55,784 KB
testcase_24 AC 173 ms
56,112 KB
testcase_25 AC 126 ms
55,644 KB
testcase_26 AC 124 ms
55,540 KB
testcase_27 AC 126 ms
55,628 KB
testcase_28 AC 125 ms
55,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {
	
	public static final long MOD = 1000000007;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final int N = sc.nextInt();
		final int K = sc.nextInt();
		
		int xor = 0;
		for(int i = 0; i < N; i++){
			xor ^= (sc.nextInt() % (K + 1));
		}
		
		System.out.println((xor == 0 ? "NO" : "YES"));
	}
}
0