結果

問題 No.601 Midpoint Erase
ユーザー pekempey
提出日時 2017-12-01 00:06:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 354 bytes
コンパイル時間 621 ms
コンパイル使用メモリ 67,840 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 15:32:32
合計ジャッジ時間 1,789 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main() {
  int n;
  cin >> n;

  int cnt[2][2] = {};

  while (n--) {
    int x, y;
    cin >> x >> y;
    cnt[x % 2][y % 2]++;
  }

  if ((cnt[0][0] / 2 + cnt[1][1] / 2 + cnt[0][1] / 2 + cnt[1][0] / 2) % 2 == 0) {
    puts("Alice");
  } else {
    puts("Bob");
  }
}
0