結果
| 問題 |
No.582 キャンディー・ボックス3
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-01-08 17:27:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 347 bytes |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 82,416 KB |
| 実行使用メモリ | 66,084 KB |
| 最終ジャッジ日時 | 2025-01-08 17:28:01 |
| 合計ジャッジ時間 | 1,907 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 RE * 1 |
ソースコード
N = int(input())
A2 = list(map(int,input().split()))
A = []
for a in A2:
if a > 0:
A.append(a)
N = len(A)
if max(A) > 2:
print("B")
elif N - A.count(1) > 1:
print("B")
elif max(A) == 2:
if N % 2 == 0:
print("A")
else:
print("B")
else:
if N % 2 == 0:
print("B")
else:
print("A")
ntuda