結果
問題 | No.582 キャンディー・ボックス3 |
ユーザー |
|
提出日時 | 2025-01-11 10:07:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 589 ms |
コンパイル使用メモリ | 81,896 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2025-01-11 10:07:09 |
合計ジャッジ時間 | 2,772 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
N = int(input())A = list(map(int,input().split()))C = {0:0,1:0,2:0}for i in range(N):C[A[i]] = C.get(A[i],0)+1N -= C[0]if N%2==0 and C[1]==N-1 and C[2]==1 or C[1]==N and N%2==1:print("A")else:print("B")