結果

問題 No.582 キャンディー・ボックス3
ユーザー takeya_okino
提出日時 2017-10-27 22:33:38
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 2,088 ms
コンパイル使用メモリ 74,040 KB
実行使用メモリ 54,184 KB
最終ジャッジ日時 2024-11-21 21:43:01
合計ジャッジ時間 5,668 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    for(int i = 0; i < n; i++) {
      int c = sc.nextInt();
      if(c > 2) count++;
    }
    String ans = "A";
    if(count > 0) ans = "B";
    System.out.println(ans);
  }
}
0