結果
| 問題 | No.601 Midpoint Erase | 
| コンテスト | |
| ユーザー |  fal_rnd | 
| 提出日時 | 2017-12-01 00:04:53 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 933 ms / 2,000 ms | 
| コード長 | 418 bytes | 
| コンパイル時間 | 2,279 ms | 
| コンパイル使用メモリ | 77,272 KB | 
| 実行使用メモリ | 53,872 KB | 
| 最終ジャッジ日時 | 2024-12-23 03:09:20 | 
| 合計ジャッジ時間 | 13,007 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 | 
ソースコード
import java.util.Arrays;
import java.util.Scanner;
public class Main{
	static Scanner s=new Scanner(System.in);
	static int gInt(){
		return s.nextInt();
	}
	public static void main(String[]$){
		int n=gInt();
		int[]c=new int[4];
		for(int i=0;i<n;++i) {
			int x=gInt(),y=gInt();
			x=x%2*2;
			y=y%2;
			++c[x+y];
		}
		int sum=Arrays.stream(c).map(i->i/2).sum();
		System.out.println(sum%2==0?"Bob":"Alice");
	}
}
            
            
            
        