結果

問題 No.582 キャンディー・ボックス3
ユーザー ああいい
提出日時 2021-12-05 21:54:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-07 08:48:15
合計ジャッジ時間 1,416 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 8 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
C = list(map(int,input().split()))
count = 0
count1 = 0
count2 = 0
for i in C:
    if i == 0:continue
    if i== 1:count1 += 1
    elif i == 2:count2 += 1
    else:count += 1
if count:print('B')
elif count2 == 1 and count1 % 2 == 0:
    print('A')
elif count2 == 0  and count1 % 2 == 0:
    print('A')
else:
    print('B')
0