結果

問題 No.436 ccw
ユーザー marumaru
提出日時 2016-12-09 11:33:44
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
TLE  
実行時間 -
コード長 277 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 12,828 KB
最終ジャッジ日時 2023-08-19 03:09:34
合計ジャッジ時間 4,599 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,344 KB
testcase_01 AC 15 ms
7,916 KB
testcase_02 AC 15 ms
7,792 KB
testcase_03 AC 15 ms
7,792 KB
testcase_04 AC 15 ms
7,920 KB
testcase_05 AC 15 ms
7,868 KB
testcase_06 AC 15 ms
7,956 KB
testcase_07 AC 15 ms
7,884 KB
testcase_08 AC 15 ms
7,908 KB
testcase_09 AC 16 ms
7,796 KB
testcase_10 AC 15 ms
7,820 KB
testcase_11 AC 15 ms
7,868 KB
testcase_12 AC 16 ms
7,780 KB
testcase_13 AC 15 ms
7,872 KB
testcase_14 AC 16 ms
7,908 KB
testcase_15 AC 16 ms
7,820 KB
testcase_16 AC 55 ms
7,796 KB
testcase_17 AC 18 ms
7,968 KB
testcase_18 AC 28 ms
7,864 KB
testcase_19 AC 47 ms
7,856 KB
testcase_20 AC 61 ms
7,796 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 >= d:
    print(d)
else:
    print(c)
0