結果

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

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int n;
int cnt[4];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    x %= 2;
    y %= 2;
    cnt[x * 2 + y]++;
  }
  int sum = 0;
  for (int i = 0; i < 4; i++) {
    sum += cnt[i] / 3;
  }
  cout << (sum % 2 ? "Alice" : "Bob") << endl;
}
0