結果

問題 No.582 キャンディー・ボックス3
ユーザー uafr_cs
提出日時 2017-11-09 15:07:24
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 2,752 ms
コンパイル使用メモリ 75,556 KB
実行使用メモリ 56,496 KB
最終ジャッジ日時 2024-11-24 07:27:01
合計ジャッジ時間 5,671 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 5
権限があれば一括ダウンロードができます

ソースコード

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