結果
問題 | No.601 Midpoint Erase |
ユーザー |
![]() |
提出日時 | 2017-12-10 01:26:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 81 ms / 2,000 ms |
コード長 | 689 bytes |
コンパイル時間 | 907 ms |
コンパイル使用メモリ | 78,532 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 03:31:01 |
合計ジャッジ時間 | 2,580 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <iostream>#include <vector>#include <string>#include <cstring>#include <math.h>#include <cmath>#include <limits.h>#include <map>#include <set>#include <queue>#include <algorithm>#include <functional>#include <stdio.h>using namespace std;long long MOD = 1000000007;int main() {int N;cin >> N;int A[2][2] = { {0,0},{0,0} };for ( int i = 0; i < N; i++ ) {long long x,y;cin >> x >> y;A[x%2][y%2]++;}int a = 0;for ( int i = 0; i < 2; i++ ) {for ( int j = 0; j < 2; j++ ) {a += A[i][j]/2;}}cout << ( a%2 ? "Alice" : "Bob" ) << endl;return 0;}