結果
| 問題 |
No.559 swapAB列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-30 01:51:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 105 bytes |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 24,128 KB |
| 最終ジャッジ日時 | 2024-11-27 19:21:57 |
| 合計ジャッジ時間 | 24,797 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 TLE * 2 |
| other | AC * 2 TLE * 5 |
ソースコード
s=input()
ans=sorted(s)
count=0
while list(s)!=ans:
count+=1
s.replace("BA","AB",1)
print(count)