結果
問題 | No.601 Midpoint Erase |
ユーザー |
![]() |
提出日時 | 2017-12-01 00:33:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 1,476 ms |
コンパイル使用メモリ | 165,824 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 03:13:26 |
合計ジャッジ時間 | 2,922 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {int n, a[2][2]{};cin >> n;for (int i = 0; i < n; i++) {int x, y;cin >> x >> y;a[x % 2][y % 2]++;}int sum = 0;for (int i = 0; i < 2; i++) {for (int j = 0; j < 2; j++) {sum += a[i][j] / 2;}}cout << (sum % 2 ? "Alice" : "Bob") << endl;return 0;}