結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  dustnn0 | 
| 提出日時 | 2018-03-12 23:45:24 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 73 ms / 2,000 ms | 
| コード長 | 403 bytes | 
| コンパイル時間 | 2,043 ms | 
| コンパイル使用メモリ | 167,188 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-15 19:04:27 | 
| 合計ジャッジ時間 | 4,244 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define rep(i,a) for(int i=0;i<(a);i++)
#define MOD 1000000007
int cnt[4];
int main(){
  int N;cin>>N;
  rep(i,N){
    int x,y;
    cin>>x>>y;
    x%=2,y%=2;
    cnt[y*2+x]++;
  }
  int sum=0;
  rep(i,4){
    sum+=cnt[i]/2;
  }
  if(sum%2) cout<<"Alice"<<endl;
  else cout<<"Bob"<<endl;
  return 0;
}
            
            
            
        