結果

問題 No.669 対決!!! 飲み比べ
ユーザー ats5515
提出日時 2018-03-23 22:33:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 514 bytes
コンパイル時間 617 ms
コンパイル使用メモリ 82,056 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-24 21:48:27
合計ジャッジ時間 1,689 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using namespace std;
#define int long long
int MOD = 1000000007;
signed main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int N, K;
	cin >> N >> K;
	vector<int> A(N);
	int res = 0;
	for (int i = 0; i < N; i++) {
		cin >> A[i];
		res ^= (A[i] % K);
	}
	if (res == 0) {
		cout << "NO" << endl;
	}
	else {
		cout << "YES" << endl;
	}
}
0