結果
| 問題 | No.582 キャンディー・ボックス3 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-12-26 22:46:53 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 41 ms / 2,000 ms | 
| コード長 | 273 bytes | 
| コンパイル時間 | 612 ms | 
| コンパイル使用メモリ | 82,248 KB | 
| 実行使用メモリ | 53,624 KB | 
| 最終ジャッジ日時 | 2024-12-18 00:35:06 | 
| 合計ジャッジ時間 | 1,582 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 17 | 
ソースコード
N = int(input())
boxes = [int(x) for x in input().split()]
n1 = 0
n2 = 0
n3 = 0
for box in boxes:
    if box == 1:
        n1 += 1
    elif box == 2:
        n2 += 1
    elif box > 2:
        n3 += 1
if n1%2==1 and n2 <= 1 and n3 == 0:
    print('A')
else:
    print('B')
            
            
            
        