結果
| 問題 |
No.2103 ±1s Game
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-09-29 20:07:37 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 378 bytes |
| コンパイル時間 | 1,831 ms |
| コンパイル使用メモリ | 27,648 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-22 18:19:04 |
| 合計ジャッジ時間 | 1,931 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 5 |
ソースコード
#include <stdio.h>
int main()
{
int X, Y, K, P, ans;
scanf("%d %d %d %d", &X, &Y, &K, &P);
if (P == 1) {
if (X - Y >= K) ans = 1;
else if ((X + Y - K) % 2 == 1) ans = 1;
else ans = 0;
} else {
if (X - Y >= K) ans = 0;
else if ((X + Y - K) % 2 == 1) ans = 1;
else ans = 0;
}
if (ans == 1) printf("Alice\n");
else printf("Bob\n");
fflush(stdout);
return 0;
}