結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
Kutimoti_T
|
| 提出日時 | 2018-06-05 19:50:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 78 ms / 2,000 ms |
| コード長 | 446 bytes |
| コンパイル時間 | 1,347 ms |
| コンパイル使用メモリ | 161,344 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 10:04:39 |
| 合計ジャッジ時間 | 2,676 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
#define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++)
int main(){
int N;
cin >> N;
vector<int> c(4,0);
for(int i = 0;i < N;i++){
int x,y;
cin >> x >> y;
x &= 1;
y &= 1;
c[x | (y << 1)]++;
}
int sum = 0;
for(int i = 0;i < 4;i++){
sum += c[i] / 2;
}
if(sum & 1){
cout << "Alice" << endl;
}
else{
cout << "Bob" << endl;
}
}
Kutimoti_T