結果

問題 No.436 ccw
ユーザー ABKZABKZ
提出日時 2023-08-20 16:24:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 125 bytes
コンパイル時間 1,591 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 81,656 KB
最終ジャッジ日時 2023-08-20 16:24:44
合計ジャッジ時間 5,936 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,408 KB
testcase_01 AC 82 ms
71,108 KB
testcase_02 AC 82 ms
71,060 KB
testcase_03 AC 92 ms
71,316 KB
testcase_04 AC 80 ms
71,540 KB
testcase_05 AC 77 ms
71,316 KB
testcase_06 AC 79 ms
71,500 KB
testcase_07 AC 79 ms
71,500 KB
testcase_08 AC 81 ms
71,380 KB
testcase_09 AC 80 ms
71,116 KB
testcase_10 AC 77 ms
71,380 KB
testcase_11 AC 82 ms
71,520 KB
testcase_12 AC 83 ms
71,252 KB
testcase_13 AC 82 ms
71,460 KB
testcase_14 AC 105 ms
71,084 KB
testcase_15 AC 79 ms
71,308 KB
testcase_16 AC 84 ms
75,248 KB
testcase_17 AC 83 ms
75,084 KB
testcase_18 AC 83 ms
75,368 KB
testcase_19 AC 84 ms
75,440 KB
testcase_20 AC 85 ms
75,244 KB
testcase_21 AC 89 ms
81,656 KB
testcase_22 AC 90 ms
79,160 KB
testcase_23 AC 87 ms
77,684 KB
testcase_24 AC 84 ms
76,100 KB
testcase_25 AC 96 ms
77,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
C = [x for x in S if x == 'c']
if len(C) - 1 < len(S) - len(C):
	print(len(C) - 1)
else:
	print(len(S) - len(C))
0