結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-12-01 03:45:58 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 81 ms / 2,000 ms | 
| コード長 | 345 bytes | 
| コンパイル時間 | 1,526 ms | 
| コンパイル使用メモリ | 157,908 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-23 03:16:33 | 
| 合計ジャッジ時間 | 3,158 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int cnt[4] = {};
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    cnt[(x & 1) + 2 * (y & 1)]++;
  }
  int ans = 0;
  for (int i = 0; i < 4; i++) {
    ans += cnt[i] / 2;
  }
  cout << (ans & 1 ? "Alice" : "Bob") << endl;
  return 0;
}
            
            
            
        