結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
shojin_pro
|
| 提出日時 | 2022-10-21 21:54:36 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 510 bytes |
| コンパイル時間 | 526 ms |
| コンパイル使用メモリ | 65,756 KB |
| 最終ジャッジ日時 | 2025-02-08 10:01:36 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 5 |
ソースコード
#include <iostream>
using namespace std;
using ll=long long;
void Alice(){
cout << "Alice" << "\n";
}
void Bob(){
cout << "Bob" << "\n";
}
int main(void){
ll x,y,k,p;
cin >> x >> y >> k >> p;
ll aT = (x+y-k+1)/2;
ll bT = x+y-k-aT;
if(p == -1){
if(bT >= y){
Bob();
return 0;
}
}else if(p == 1){
if(aT >= y){
Alice();
return 0;
}
}
if(aT == bT) Bob();
else Alice();
return 0;
}
shojin_pro