結果
| 問題 |
No.601 Midpoint Erase
|
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2019-03-19 08:33:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 2,000 ms |
| コード長 | 518 bytes |
| コンパイル時間 | 598 ms |
| コンパイル使用メモリ | 64,348 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 11:16:01 |
| 合計ジャッジ時間 | 2,760 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <math.h>
using ll = long long;
using namespace std;
const int MOD = 1e9+7;
int main() {
int N;
cin >> N;
int group[2][2] = {0};
for(int i = 0; i < N; i++)
{
int x, y;
cin >> x >> y;
group[x%2][y%2]++;
}
int k = 0;
k += group[0][0] / 2;
k += group[0][1] / 2;
k += group[1][0] / 2;
k += group[1][1] / 2;
cout << (k%2==0?"Bob":"Alice") << endl;
return 0;
}
🍮かんプリン