結果
| 問題 | No.2666 Decreasing Modulo Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-09 20:57:03 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 1,254 ms |
| コンパイル使用メモリ | 210,996 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-04 01:19:12 |
| 合計ジャッジ時間 | 3,570 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 55 |
ソースコード
#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,y=0; for (int ai : a) x^=ai%m,y^=ai/m; if (x+y==0) cout <<"Bob\n"; else cout << "Alice\n"; return 0;}