結果
| 問題 | No.582 キャンディー・ボックス3 | 
| コンテスト | |
| ユーザー |  H20 | 
| 提出日時 | 2021-02-10 11:05:59 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 34 ms / 2,000 ms | 
| コード長 | 313 bytes | 
| コンパイル時間 | 148 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 52,096 KB | 
| 最終ジャッジ日時 | 2024-07-07 21:11:38 | 
| 合計ジャッジ時間 | 1,487 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 17 | 
ソースコード
N = int(input())
C = list(map(int,input().split()))
one = 0
two = 0
more = False 
for i in range(N):
    if C[i]==1:
        one+=1
    if C[i]==2:
        two+=1
    if C[i]>2:
        more=True
if not more and two<=1:
    if (one+two*2)%2==1:
        print('A')
    else:
        print('B')
else:
    print('B')
            
            
            
        