回答編集履歴
1
修正
test
CHANGED
@@ -4,14 +4,10 @@
|
|
4
4
|
|
5
5
|
t = s.index("W")
|
6
6
|
|
7
|
-
tmp_
|
7
|
+
tmp_1 += s[:t].count("B")
|
8
|
-
|
9
|
-
tmp_1 += tmp_2
|
10
8
|
|
11
9
|
ans += tmp_1
|
12
10
|
|
13
11
|
s = s[t+1:]
|
14
12
|
|
15
|
-
print(t)
|
16
|
-
|
17
13
|
```
|