結果

問題 No.582 キャンディー・ボックス3
ユーザー Bioinfo_KBioinfo_K
提出日時 2017-10-27 23:29:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 340 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 8,632 KB
最終ジャッジ日時 2023-08-14 05:36:23
合計ジャッジ時間 1,560 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 19 ms
8,592 KB
testcase_02 WA -
testcase_03 AC 18 ms
8,472 KB
testcase_04 AC 18 ms
8,468 KB
testcase_05 AC 18 ms
8,632 KB
testcase_06 AC 18 ms
8,496 KB
testcase_07 AC 18 ms
8,500 KB
testcase_08 AC 19 ms
8,496 KB
testcase_09 AC 18 ms
8,432 KB
testcase_10 AC 19 ms
8,580 KB
testcase_11 AC 19 ms
8,500 KB
testcase_12 AC 19 ms
8,432 KB
testcase_13 AC 19 ms
8,436 KB
testcase_14 AC 19 ms
8,432 KB
testcase_15 AC 18 ms
8,432 KB
testcase_16 AC 19 ms
8,456 KB
testcase_17 AC 18 ms
8,504 KB
testcase_18 AC 18 ms
8,468 KB
testcase_19 AC 19 ms
8,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,collections
sys.setrecursionlimit(10**7)

def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n = I()
cs = Is()
count = cs.count(1)
if count % 2 == 1 and max(cs) <= 2:
    print("A")
else:
    print("B")
0