結果

問題 No.436 ccw
ユーザー marumaru
提出日時 2016-12-09 11:42:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 353 bytes
コンパイル時間 1,194 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 12,892 KB
最終ジャッジ日時 2023-08-19 03:10:02
合計ジャッジ時間 4,832 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
12,204 KB
testcase_01 AC 15 ms
7,796 KB
testcase_02 AC 16 ms
7,920 KB
testcase_03 AC 15 ms
7,880 KB
testcase_04 AC 14 ms
7,916 KB
testcase_05 AC 14 ms
7,820 KB
testcase_06 AC 13 ms
7,828 KB
testcase_07 AC 16 ms
7,796 KB
testcase_08 AC 15 ms
7,848 KB
testcase_09 AC 16 ms
7,824 KB
testcase_10 AC 15 ms
7,848 KB
testcase_11 AC 15 ms
7,820 KB
testcase_12 AC 16 ms
7,756 KB
testcase_13 AC 16 ms
7,820 KB
testcase_14 AC 15 ms
7,800 KB
testcase_15 AC 16 ms
7,936 KB
testcase_16 AC 74 ms
7,816 KB
testcase_17 AC 30 ms
7,812 KB
testcase_18 AC 73 ms
7,800 KB
testcase_19 AC 63 ms
7,924 KB
testcase_20 AC 180 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 or ('ccw' in a[1]) == True:
    if ('ccw' in a[0]) == 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