結果

問題 No.582 キャンディー・ボックス3
ユーザー 👑 KazunKazun
提出日時 2021-01-04 17:40:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 53,904 KB
最終ジャッジ日時 2024-04-23 03:40:23
合計ジャッジ時間 1,743 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,808 KB
testcase_01 AC 37 ms
51,900 KB
testcase_02 AC 36 ms
52,564 KB
testcase_03 AC 37 ms
53,360 KB
testcase_04 AC 37 ms
53,720 KB
testcase_05 AC 42 ms
52,688 KB
testcase_06 AC 39 ms
52,424 KB
testcase_07 AC 38 ms
52,644 KB
testcase_08 WA -
testcase_09 AC 41 ms
52,460 KB
testcase_10 WA -
testcase_11 AC 37 ms
52,484 KB
testcase_12 AC 35 ms
52,744 KB
testcase_13 AC 38 ms
52,128 KB
testcase_14 AC 36 ms
52,980 KB
testcase_15 AC 38 ms
52,144 KB
testcase_16 WA -
testcase_17 AC 38 ms
53,904 KB
testcase_18 AC 38 ms
52,212 KB
testcase_19 AC 38 ms
52,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

_=int(input())
C=list(map(int,input().split()))
C=[c for c in C if c]

N=len(C)
C.sort()

if (N%2==0 and C==[1]*(N-1)+[2]) or  C==[1]:
    print("A")
else:
    print("B")
0