結果

問題 No.601 Midpoint Erase
ユーザー fal_rndfal_rnd
提出日時 2017-12-01 00:15:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 758 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 4,180 ms
コンパイル使用メモリ 71,328 KB
実行使用メモリ 65,616 KB
最終ジャッジ日時 2023-08-24 18:32:49
合計ジャッジ時間 11,652 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,820 KB
testcase_01 AC 135 ms
55,864 KB
testcase_02 AC 122 ms
55,788 KB
testcase_03 AC 584 ms
62,284 KB
testcase_04 AC 630 ms
62,736 KB
testcase_05 AC 597 ms
60,488 KB
testcase_06 AC 472 ms
60,424 KB
testcase_07 AC 627 ms
61,740 KB
testcase_08 AC 574 ms
60,972 KB
testcase_09 AC 658 ms
62,892 KB
testcase_10 AC 387 ms
60,376 KB
testcase_11 AC 758 ms
65,616 KB
testcase_12 AC 567 ms
60,680 KB
testcase_13 AC 122 ms
55,828 KB
testcase_14 AC 121 ms
55,884 KB
testcase_15 AC 125 ms
55,964 KB
testcase_16 AC 132 ms
55,708 KB
testcase_17 AC 123 ms
55,996 KB
testcase_18 AC 134 ms
56,340 KB
testcase_19 AC 137 ms
55,752 KB
testcase_20 AC 133 ms
55,716 KB
testcase_21 AC 133 ms
56,444 KB
testcase_22 AC 139 ms
56,004 KB
testcase_23 AC 124 ms
55,876 KB
testcase_24 AC 127 ms
56,048 KB
testcase_25 AC 131 ms
56,052 KB
権限があれば一括ダウンロードができます

ソースコード

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