結果
| 問題 | No.601 Midpoint Erase |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-05 03:43:33 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 1,139 ms |
| コンパイル使用メモリ | 209,856 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-09 23:17:44 |
| 合計ジャッジ時間 | 3,136 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
int main(){
int n; scanf("%d",&n);
int cnt[2][2]={};
rep(i,n){
int x,y; scanf("%d%d",&x,&y);
cnt[x%2][y%2]++;
}
int sum=0;
rep(i,2) rep(j,2) sum+=cnt[i][j]/2;
puts(sum%2==1?"Alice":"Bob");
return 0;
}