結果
問題 |
No.1894 Delete AB
|
ユーザー |
|
提出日時 | 2022-04-08 22:48:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 136 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 205,380 KB |
最終ジャッジ日時 | 2024-11-28 13:41:03 |
合計ジャッジ時間 | 4,396 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 RE * 5 |
ソースコード
t = int(input()) def erase_ab(str): if "ABB" in str: s1 = str.replace("ABB","B",1) str = erase_ab(s1) return str else: return str for i in range(t): n = int(input()) s = input() print(erase_ab(s))