結果

問題 No.582 キャンディー・ボックス3
ユーザー ああいいああいい
提出日時 2021-12-05 21:54:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-09-21 15:01:53
合計ジャッジ時間 1,417 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,804 KB
testcase_01 AC 15 ms
7,816 KB
testcase_02 AC 16 ms
7,792 KB
testcase_03 WA -
testcase_04 AC 16 ms
7,788 KB
testcase_05 AC 16 ms
7,956 KB
testcase_06 WA -
testcase_07 AC 16 ms
7,796 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 15 ms
7,984 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 15 ms
7,828 KB
testcase_18 AC 16 ms
7,860 KB
testcase_19 AC 16 ms
7,960 KB
権限があれば一括ダウンロードができます

ソースコード

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