結果

問題 No.436 ccw
ユーザー brthyyjpbrthyyjp
提出日時 2021-01-10 10:38:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 133 bytes
コンパイル時間 1,214 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 75,932 KB
最終ジャッジ日時 2023-08-13 02:01:25
合計ジャッジ時間 4,905 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,596 KB
testcase_01 AC 71 ms
71,276 KB
testcase_02 AC 73 ms
71,360 KB
testcase_03 AC 73 ms
71,420 KB
testcase_04 AC 72 ms
71,332 KB
testcase_05 AC 72 ms
71,360 KB
testcase_06 AC 73 ms
71,276 KB
testcase_07 AC 72 ms
71,300 KB
testcase_08 AC 73 ms
71,452 KB
testcase_09 AC 70 ms
71,260 KB
testcase_10 WA -
testcase_11 AC 72 ms
71,368 KB
testcase_12 AC 72 ms
71,316 KB
testcase_13 AC 71 ms
71,264 KB
testcase_14 AC 73 ms
71,096 KB
testcase_15 AC 73 ms
71,252 KB
testcase_16 AC 75 ms
75,760 KB
testcase_17 AC 72 ms
71,292 KB
testcase_18 AC 73 ms
71,592 KB
testcase_19 AC 74 ms
75,560 KB
testcase_20 AC 75 ms
75,932 KB
testcase_21 AC 77 ms
75,900 KB
testcase_22 AC 76 ms
75,700 KB
testcase_23 AC 77 ms
75,788 KB
testcase_24 AC 75 ms
75,892 KB
testcase_25 AC 77 ms
75,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
C = 0
for c in s:
    if c == 'c':
        C += 1
    else:
        break
W = len(s)-C

print(min(C-1, W, W-1+C-2))
0