結果
| 問題 |
No.2666 Decreasing Modulo Nim
|
| コンテスト | |
| ユーザー |
hongrock
|
| 提出日時 | 2024-03-08 21:40:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 556 bytes |
| コンパイル時間 | 1,846 ms |
| コンパイル使用メモリ | 191,188 KB |
| 最終ジャッジ日時 | 2025-02-20 02:19:15 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 45 WA * 10 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define pb emplace_back
#define mp make_pair
using ll = long long;
using pii = pair<int,int>;
constexpr int mod = 998244353;
constexpr int inf = 0x3f3f3f3f;
constexpr int N = 2e5 + 10;
int n, m, a[N];
void _main(){
cin >> n >> m;
int s1 = 0, s2 = 0;
for(int i=1; i<=n; ++i){
cin >> a[i];
s1 ^= a[i];
s2 ^= (a[i] / m);
}
if(s1 == 0 && s2 == 0) cout << "Bob\n";
else cout << "Alice\n";
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
_main();
return 0;
}
hongrock