結果
問題 | No.601 Midpoint Erase |
ユーザー |
|
提出日時 | 2020-04-16 08:54:47 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 487 bytes |
コンパイル時間 | 950 ms |
コンパイル使用メモリ | 72,288 KB |
最終ジャッジ日時 | 2025-01-09 19:23:48 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <iostream>#include <vector>void solve() {std::vector<int> cnt(4, 0);int n;std::cin >> n;while (n--) {int x, y;std::cin >> x >> y;x %= 2, y %= 2;++cnt[(x << 1) + y];}int sum = 0;for (auto x : cnt) sum += x / 2;std::cout << (sum % 2 == 0 ? "Bob" : "Alice")<< std::endl;}int main() {std::cin.tie(nullptr);std::ios::sync_with_stdio(false);solve();return 0;}