結果
問題 | No.601 Midpoint Erase |
ユーザー |
![]() |
提出日時 | 2017-12-01 01:01:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 345 bytes |
コンパイル時間 | 1,862 ms |
コンパイル使用メモリ | 167,120 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 03:14:42 |
合計ジャッジ時間 | 2,537 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#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] / 2; } cout << (sum % 2 ? "Alice" : "Bob") << endl; }