結果
| 問題 | No.582 キャンディー・ボックス3 |
| コンテスト | |
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-06-28 02:12:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 418 bytes |
| 記録 | |
| コンパイル時間 | 225 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-08-06 18:41:20 |
| 合計ジャッジ時間 | 2,832 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 4 |
ソースコード
N = int(input())
C = list(map(int,input().split()))
one_count = 0
more_than_two_count = 0
for c in C:
if c == 1:
one_count += 1
elif c >= 2:
more_than_two_count += 1
if more_than_two_count >= 2:
print("B")
elif more_than_two_count == 1:
if one_count == 1:
print("A")
else:
print("B")
else:
if one_count % 2 == 1:
print("A")
else:
print("B")
310icecrystal