結果

問題 No.582 キャンディー・ボックス3
ユーザー takeya_okinotakeya_okino
提出日時 2017-10-27 22:33:38
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 2,393 ms
コンパイル使用メモリ 74,280 KB
実行使用メモリ 41,832 KB
最終ジャッジ日時 2024-05-01 16:29:33
合計ジャッジ時間 5,875 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 132 ms
41,504 KB
testcase_02 WA -
testcase_03 AC 133 ms
41,364 KB
testcase_04 AC 132 ms
41,388 KB
testcase_05 AC 133 ms
41,464 KB
testcase_06 AC 134 ms
41,692 KB
testcase_07 AC 133 ms
41,640 KB
testcase_08 AC 133 ms
41,420 KB
testcase_09 AC 137 ms
41,208 KB
testcase_10 AC 133 ms
41,300 KB
testcase_11 WA -
testcase_12 AC 132 ms
41,192 KB
testcase_13 AC 144 ms
41,356 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 142 ms
41,768 KB
testcase_17 AC 141 ms
41,344 KB
testcase_18 AC 144 ms
41,624 KB
testcase_19 AC 146 ms
41,696 KB
権限があれば一括ダウンロードができます

ソースコード

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