結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
Kutimoti_T
|
| 提出日時 | 2018-06-05 19:49:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 442 bytes |
| コンパイル時間 | 1,257 ms |
| コンパイル使用メモリ | 161,068 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 10:04:42 |
| 合計ジャッジ時間 | 2,701 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 13 WA * 10 |
ソースコード
#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];
}
if(sum & 1){
cout << "Alice" << endl;
}
else{
cout << "Bob" << endl;
}
}
Kutimoti_T