結果

問題 No.582 キャンディー・ボックス3
ユーザー uafr_csuafr_cs
提出日時 2017-11-09 15:07:24
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 1,877 ms
コンパイル使用メモリ 75,208 KB
実行使用メモリ 54,420 KB
最終ジャッジ日時 2024-05-03 08:47:37
合計ジャッジ時間 5,408 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 127 ms
40,800 KB
testcase_04 AC 128 ms
41,156 KB
testcase_05 AC 129 ms
41,120 KB
testcase_06 AC 126 ms
41,400 KB
testcase_07 WA -
testcase_08 AC 127 ms
41,072 KB
testcase_09 AC 124 ms
41,160 KB
testcase_10 AC 112 ms
41,400 KB
testcase_11 AC 117 ms
39,724 KB
testcase_12 AC 125 ms
41,704 KB
testcase_13 AC 137 ms
41,516 KB
testcase_14 AC 130 ms
41,732 KB
testcase_15 AC 132 ms
41,288 KB
testcase_16 AC 145 ms
41,500 KB
testcase_17 WA -
testcase_18 AC 133 ms
41,376 KB
testcase_19 AC 145 ms
41,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {
	
	public static long MOD = 1000000007;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final int N = sc.nextInt();
		int win = 0;
		for(int i = 0; i < N; i++){
			final int c = sc.nextInt();
			
			if(c == 1){
				win++;
			}
		}
		
		System.out.println(win % 2 == 1 ? "A" : "B");
	}
}
0