結果
| 問題 |
No.669 対決!!! 飲み比べ
|
| コンテスト | |
| ユーザー |
ts_
|
| 提出日時 | 2018-04-02 05:46:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 419 bytes |
| コンパイル時間 | 2,222 ms |
| コンパイル使用メモリ | 157,844 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-26 06:30:34 |
| 合計ジャッジ時間 | 2,774 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 WA * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,n) FOR(i,0,n)
#define pb emplace_back
typedef long long ll;
typedef pair<int,int> pint;
int a[1001];
int main(){
int n,k;
cin>>n>>k;
int sum=0,sg=0;
rep(i,n){
cin>>a[i];
a[i]%=k;
sum^=a[i];
}
if(sum==0) cout<<"NO"<<endl;
else cout<<"YES"<<endl;
return 0;
}
ts_