結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
totori_nyaa
|
| 提出日時 | 2019-07-17 20:39:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 450 bytes |
| コンパイル時間 | 1,699 ms |
| コンパイル使用メモリ | 165,840 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 07:15:14 |
| 合計ジャッジ時間 | 3,850 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
signed main(){
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin>>n;
int a[2][2]={};
int ans=0;
for(int i=0;i<n;i++){
int x,y;
cin>>x>>y;
a[x%2][y%2]++;
}
for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
ans+=a[i][j]/2;
}
}
ans%=2;
if(ans){
cout<<"Alice"<<endl;
}
else cout<<"Bob"<<endl;
}
totori_nyaa