結果
問題 | No.669 対決!!! 飲み比べ |
ユーザー |
|
提出日時 | 2018-03-23 22:44:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 547 ms |
コンパイル使用メモリ | 68,896 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-25 02:02:47 |
合計ジャッジ時間 | 1,369 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <iostream>#include <algorithm>#include <vector>using namespace std;int main(){int N, K;cin >> N >> K;int grundy_xor = 0;for(int i = 0; i < N; i++){int num;cin >> num;grundy_xor ^= num % (K + 1);}if(grundy_xor){cout << "YES" << endl;}else{cout << "NO" << endl;}}