結果
問題 |
No.582 キャンディー・ボックス3
|
ユーザー |
|
提出日時 | 2017-12-26 22:44:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 398 ms |
コンパイル使用メモリ | 82,404 KB |
実行使用メモリ | 53,892 KB |
最終ジャッジ日時 | 2024-12-18 00:34:46 |
合計ジャッジ時間 | 2,015 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 3 |
ソースコード
N = int(input()) boxes = [int(x) for x in input().split()] n1 = 0 n2 = 0 for box in boxes: if box == 1: n1 += 1 else: n2 += 1 if n1%2==1 and n2 <= 1: print('A') else: print('B')