結果
問題 | No.601 Midpoint Erase |
ユーザー | pekempey |
提出日時 | 2017-12-01 00:06:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 81 ms / 2,000 ms |
コード長 | 354 bytes |
コンパイル時間 | 797 ms |
コンパイル使用メモリ | 67,716 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 03:08:27 |
合計ジャッジ時間 | 2,336 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#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 == 1) { puts("Alice"); } else { puts("Bob"); } }