結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-12-01 23:30:09 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 81 ms / 2,000 ms | 
| コード長 | 336 bytes | 
| コンパイル時間 | 2,095 ms | 
| コンパイル使用メモリ | 69,120 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-23 03:24:19 | 
| 合計ジャッジ時間 | 2,464 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main() {
	int n, x, y;
	cin >> n;
	vector<int> types(4, 0);
	for (int i = 0; i < n; i++) {
		cin >> x >> y;
		types[x % 2 * 2 + y % 2]++;
	}
	int pairs = 0;
	for (auto z : types) {
		pairs += z / 2;
	}
	cout << (pairs % 2 == 1 ? "Alice" : "Bob") << endl;
	return 0;
}
            
            
            
        