結果
問題 |
No.2103 ±1s Game
|
ユーザー |
|
提出日時 | 2022-10-21 21:47:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 656 bytes |
コンパイル時間 | 1,562 ms |
コンパイル使用メモリ | 165,924 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-01 06:23:03 |
合計ジャッジ時間 | 2,659 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 21 |
ソースコード
#include<bits/stdc++.h> #include<iostream> using namespace std; using LL = long long; //using P = pair<int,int>; using Graph = vector<vector<int>>; const long long LINF = 1LL << 60; #define all(x) (x).begin(), (x).end() #define rep(i,n) for(int i = 0; i < (n); ++i) template<class T>void chmin(T&a, T b){if(a > b) a = b;} template<class T>void chmax(T&a, T b){if(a < b) a = b;} int X, Y, K, P; int main(){ cin >> X >> Y >> K >> P; bool flag = true; if(P==1){ if(Y%2==0) flag = true; else flag = false; } else{ if(Y%2==0) flag = false; else flag = true; } if(flag) cout << "Alice" << endl; else cout << "Bob" << endl; }