結果

問題 No.601 Midpoint Erase
ユーザー sekiya9311sekiya9311
提出日時 2017-12-01 00:53:16
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 1,729 ms
コンパイル使用メモリ 166,564 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-18 11:14:01
合計ジャッジ時間 3,280 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,380 KB
testcase_02 WA -
testcase_03 AC 16 ms
4,380 KB
testcase_04 WA -
testcase_05 AC 13 ms
4,380 KB
testcase_06 AC 8 ms
4,380 KB
testcase_07 WA -
testcase_08 AC 15 ms
4,380 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 24 ms
4,380 KB
testcase_12 WA -
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,376 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 2 ms
4,380 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 WA -
testcase_22 AC 2 ms
4,384 KB
testcase_23 AC 2 ms
4,380 KB
testcase_24 WA -
testcase_25 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

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