結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
femto
|
| 提出日時 | 2017-12-01 00:22:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 510 bytes |
| コンパイル時間 | 2,110 ms |
| コンパイル使用メモリ | 166,032 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 03:11:32 |
| 合計ジャッジ時間 | 3,282 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int cnt[2][2];
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
#ifdef LOCAL
std::ifstream in("in");
std::cin.rdbuf(in.rdbuf());
#endif
int N;
cin >> N;
for(int i = 0; i < N; i++){
int x, y;
cin >> x >> y;
cnt[x % 2][y % 2]++;
}
int sum = 0;
sum += cnt[0][0] / 2;
sum += cnt[0][1] / 2;
sum += cnt[1][0] / 2;
sum += cnt[1][1] / 2;
if(sum % 2 == 0){
cout << "Bob" << endl;
}
else{
cout << "Alice" << endl;
}
}
femto