結果
問題 |
No.3112 Decrement or Mod Game
|
ユーザー |
|
提出日時 | 2025-04-18 22:13:03 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 461 bytes |
コンパイル時間 | 1,747 ms |
コンパイル使用メモリ | 191,000 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-18 22:13:13 |
合計ジャッジ時間 | 3,211 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 55 WA * 10 |
ソースコード
#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 ? "Alice" : "Bob"); return 0; }