結果

問題 No.559 swapAB列
ユーザー tarotaro789tarotaro789
提出日時 2018-07-16 10:15:01
言語 Python3
(3.11.2 + numpy 1.24.2 + scipy 1.10.1)
結果
WA  
実行時間 -
コード長 174 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-08-09 22:51:45
合計ジャッジ時間 1,043 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
7,916 KB
testcase_02 WA -
testcase_03 AC 15 ms
7,760 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 15 ms
7,904 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

st=input()
ls=list(st)
cnt=0
for i in range(len(st)):
    if ls[i]=="B":
        ls.remove("B")
        ls.append("B")
        if cnt!=0:
            cnt=cnt+1
  
print(cnt)
0