結果

問題 No.601 Midpoint Erase
ユーザー evawenis
提出日時 2020-06-17 19:16:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 365 bytes
コンパイル時間 2,214 ms
コンパイル使用メモリ 194,484 KB
最終ジャッジ日時 2025-01-11 05:00:52
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int n; cin>>n;
	vector<int>v(4,0);
	for(int i=0;i<n;++i){
		int x,y; cin>>x>>y;
		if(x&1){
			if(y&1)++v.at(0);
			else ++v.at(1);
		}
		else if(y&1)++v.at(2);
		else ++v.at(3);
	}
	int ans=0;
	for(auto&&i:v){
		ans+=i/2;
	}
	cout<<(ans&1?"Alice"s:"Bob"s)<<"\n"s;
}
0