結果
| 問題 | No.3112 Decrement or Mod Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-18 22:14:58 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 465 bytes |
| 記録 | |
| コンパイル時間 | 1,732 ms |
| コンパイル使用メモリ | 191,428 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-04-18 22:15:02 |
| 合計ジャッジ時間 | 3,281 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 65 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
typedef pair<long long, int> pli;
typedef pair<int, pair<int, int> > piii;
typedef long long ll;
const int N = 6000086, MOD = 1e9 + 7, INF = 0x3f3f3f3f;
ll res;
int n, m, cnt, w[N];
int e[N], ne[N], h[N], idx, t[N];
ll d[N];
bool st[N];
int main() {
ll n, m;
cin >> n >> m;
if (n == 1 || n % m == 0) puts("Alice");
else puts(n > m + 1 ? "Alice" : "Bob");
return 0;
}