結果

問題 No.436 ccw
ユーザー marumaru
提出日時 2016-12-09 11:31:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 12,732 KB
最終ジャッジ日時 2023-08-19 03:09:23
合計ジャッジ時間 5,273 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 14 ms
7,812 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 13 ms
7,784 KB
testcase_07 AC 12 ms
7,992 KB
testcase_08 AC 12 ms
7,912 KB
testcase_09 AC 12 ms
7,876 KB
testcase_10 AC 12 ms
7,936 KB
testcase_11 AC 13 ms
7,876 KB
testcase_12 WA -
testcase_13 AC 12 ms
7,828 KB
testcase_14 AC 12 ms
7,816 KB
testcase_15 AC 12 ms
7,868 KB
testcase_16 AC 47 ms
7,848 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 52 ms
7,820 KB
testcase_21 TLE -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
a = []
c = 0
d = 0

for value in range(0,2):
    a.append(s)

while ('ccw' in a[0]) == True:
    a[0] = a[0].replace('c','',1)
    c = c + 1

while ('ccw' in a[1]) == True:
    a[1] = a[1].replace('w','',1)
    d = d + 1

if c+1 >= d:
    print(d)
else:
    print(c+1)
0