結果

問題 No.582 キャンディー・ボックス3
ユーザー roarisroaris
提出日時 2019-07-26 12:22:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 8,268 KB
最終ジャッジ日時 2023-09-15 00:16:42
合計ジャッジ時間 1,284 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,264 KB
testcase_01 AC 16 ms
8,212 KB
testcase_02 AC 17 ms
8,164 KB
testcase_03 WA -
testcase_04 AC 16 ms
8,268 KB
testcase_05 AC 16 ms
8,264 KB
testcase_06 AC 15 ms
7,960 KB
testcase_07 AC 15 ms
8,204 KB
testcase_08 AC 16 ms
7,916 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,816 KB
testcase_11 AC 15 ms
7,816 KB
testcase_12 AC 16 ms
8,172 KB
testcase_13 WA -
testcase_14 AC 16 ms
7,908 KB
testcase_15 WA -
testcase_16 AC 16 ms
7,912 KB
testcase_17 AC 15 ms
8,204 KB
testcase_18 AC 15 ms
8,092 KB
testcase_19 AC 16 ms
8,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
C = list(map(int, input().split()))
one, two = 0, 0

for C_i in C:
    if C_i == 1:
        one += 1
        
    if C_i == 2:
        two += 1
        
    if C_i >= 3:
        print('B')
        exit()

if two >= 2:
    print('B')
    exit()

if (two == 1 and one % 2 == 0) or (two == 0 and one % 2 == 1):
    print('A')
else:
    print('B')
0