結果

問題 No.582 キャンディー・ボックス3
ユーザー DexctersuDexctersu
提出日時 2018-01-30 14:00:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 152 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-08-28 16:38:12
合計ジャッジ時間 1,690 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n=int(input())
c=list(input())
w=c.count("1")
if n%2!=0 and w==n:
    print("A")
elif w%2!=0 and w+c.count("2")==n:
    print("A")
else:
    print("B")
0