結果

問題 No.436 ccw
ユーザー marumaru
提出日時 2016-12-09 11:32:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 12,476 KB
最終ジャッジ日時 2023-08-19 03:09:29
合計ジャッジ時間 4,769 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
12,476 KB
testcase_01 AC 12 ms
7,848 KB
testcase_02 AC 13 ms
7,844 KB
testcase_03 AC 12 ms
7,728 KB
testcase_04 AC 13 ms
7,792 KB
testcase_05 WA -
testcase_06 AC 13 ms
7,728 KB
testcase_07 AC 13 ms
7,752 KB
testcase_08 AC 13 ms
7,844 KB
testcase_09 AC 14 ms
7,844 KB
testcase_10 AC 13 ms
7,904 KB
testcase_11 AC 13 ms
7,756 KB
testcase_12 AC 13 ms
7,728 KB
testcase_13 AC 14 ms
7,812 KB
testcase_14 AC 14 ms
7,864 KB
testcase_15 AC 13 ms
7,808 KB
testcase_16 AC 53 ms
7,936 KB
testcase_17 AC 16 ms
7,936 KB
testcase_18 AC 25 ms
7,848 KB
testcase_19 AC 43 ms
7,796 KB
testcase_20 AC 54 ms
7,732 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)
0