結果
問題 | No.601 Midpoint Erase |
ユーザー |
![]() |
提出日時 | 2017-12-03 01:28:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 597 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 03:27:30 |
合計ジャッジ時間 | 1,867 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <iostream>using namespace std;int N;int main() {cin.tie(0); ios::sync_with_stdio(false);cin >> N;int p[4] = {0, 0, 0, 0};for (int j = 0; j < N; ++j) {int x, y; cin >> x >> y;++p[2*(x%2)+y%2];}int v = p[0]/2 + p[1]/2 + p[2]/2 + p[3]/2;cout << (v % 2 == 1 ? "Alice" : "Bob") << endl;return 0;}