結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-01 00:04:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| コンパイル時間 | 557 ms |
| コンパイル使用メモリ | 68,216 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 15:30:23 |
| 合計ジャッジ時間 | 2,804 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 12 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int cnt[2][2] = {};
while (n--) {
int x, y;
cin >> x >> y;
cnt[x % 2][y % 2]++;
}
if ((cnt[0][0] / 2 + cnt[1][1] / 2 + min(cnt[0][1], cnt[1][0])) % 2 == 0) {
puts("Alice");
} else {
puts("Bob");
}
}