結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-05-14 19:36:21 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 27 ms / 2,000 ms | 
| コード長 | 847 bytes | 
| コンパイル時間 | 398 ms | 
| コンパイル使用メモリ | 54,360 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 11:49:16 | 
| 合計ジャッジ時間 | 2,196 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
ソースコード
/*
 * Advent Calendar Contest 2017(2017-12-01 00:00:00〜2017-12-25 00:00:00)
 * #A 32ms
 */
#include <iostream>
using namespace std;
#define fastcin {\
    cin.tie(0);\
    ios::sync_with_stdio(false);\
}
#define REP(i, a) for(int i = 0; i < a; i++)
#define scan(x) cin >> x
#define print(x) cout << x << "\n"
int main() {
    fastcin;
    int N; scan(N);
    int s[N];
    long x[N], y[N];
    int count[4] = {};
    int ans = 0;
    REP(i, N) {
        cin >> x[i] >> y[i];
        if (x[i]%2==0) {
            if (y[i]%2==0) s[i] = 0;
            else s[i] = 1;
        } else {
            if (y[i]%2==0) s[i] = 2;
            else s[i] = 3;
        }
        if (count[s[i]] > 0) {
            count[s[i]]--;
            ans++;
        } else count[s[i]]++;
    }
    if (ans%2!=0) print("Alice");
    else print("Bob");
    return 0;
}
            
            
            
        