結果

問題 No.582 キャンディー・ボックス3
ユーザー RyutoRyuto
提出日時 2017-12-26 22:46:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-05-10 03:39:15
合計ジャッジ時間 1,762 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,328 KB
testcase_01 AC 40 ms
51,840 KB
testcase_02 AC 40 ms
52,096 KB
testcase_03 AC 40 ms
51,840 KB
testcase_04 AC 41 ms
51,968 KB
testcase_05 AC 41 ms
51,712 KB
testcase_06 AC 40 ms
51,456 KB
testcase_07 AC 40 ms
51,712 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 40 ms
51,840 KB
testcase_11 AC 41 ms
51,712 KB
testcase_12 AC 40 ms
51,328 KB
testcase_13 AC 40 ms
51,712 KB
testcase_14 AC 40 ms
51,840 KB
testcase_15 AC 41 ms
51,840 KB
testcase_16 WA -
testcase_17 AC 40 ms
51,456 KB
testcase_18 AC 41 ms
51,968 KB
testcase_19 AC 41 ms
51,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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
    else:
        n3 += 1

if n1%2==1 and n2 <= 1 and n3 == 0:
    print('A')
else:
    print('B')
0