結果
| 問題 |
No.669 対決!!! 飲み比べ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-14 22:30:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 713 bytes |
| コンパイル時間 | 1,100 ms |
| コンパイル使用メモリ | 96,624 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-09-28 19:02:35 |
| 合計ジャッジ時間 | 1,705 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 25 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <numeric>
#include <map>
#include <algorithm>
#include <set>
#include <queue>
#include <random>
using namespace std;
#define rep(i,m,n) for(int i=m; i<n; i++)
#define INF (1 << 30)
using ll = long long;
using ull = unsigned long long;
std::random_device rng;
//test
//erase leaves: std::iota, union_find
//swapping puzzle: std::next_permutation
//festival: lower_bound
int main()
{
int n, k;
cin >> n >> k;
int ans = 0;
rep(i, 0, n) {
int a;
cin >> a;
ans ^= (a % (k + 1));
}
if (0 < ans) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
return 0;
}