結果

問題 No.436 ccw
ユーザー marumaru
提出日時 2016-12-09 11:41:38
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 15,972 KB
最終ジャッジ日時 2023-08-19 03:09:54
合計ジャッジ時間 3,584 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
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 or ('ccw' in a[1]) == True:
    if ('ccw' in a[1]) == True:
        a[0] = a[0].replace('c','',1)
        c = c + 1

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

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