結果
| 問題 |
No.2666 Decreasing Modulo Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-09 20:54:10 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 1,892 ms |
| コンパイル使用メモリ | 193,340 KB |
| 最終ジャッジ日時 | 2025-02-20 03:31:30 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 WA * 35 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() { cin.tie(0)->sync_with_stdio(0); int n,m; cin>>n>>m; vector<int> a(n); for (int &ai : a) cin>>ai; int x=0; for (int ai : a) x^=ai%m; if (x<m) cout <<"Bob\n"; else cout << "Alice\n"; return 0;}