結果

問題 No.601 Midpoint Erase
ユーザー fal_rnd
提出日時 2017-12-01 00:15:21
言語 Java
(openjdk 23)
結果
AC  
実行時間 882 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 2,492 ms
コンパイル使用メモリ 75,196 KB
実行使用メモリ 55,780 KB
最終ジャッジ日時 2024-12-23 03:10:53
合計ジャッジ時間 13,107 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
	public static void main(String[]$){
		Scanner s=new Scanner(System.in);
		int c[]=new int[4],i;
		for(i=s.nextInt();i>0;--i)
			++c[s.nextInt()%2*2+s.nextInt()%2];
		System.out.println((c[0]/2+c[1]/2+c[2]/2+c[3]/2)%2==0?"Bob":"Alice");
	}
}
0