結果

問題 No.436 ccw
ユーザー neko_the_shadowneko_the_shadow
提出日時 2016-10-29 21:27:27
言語 Ruby
(3.2.2)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 78 bytes
コンパイル時間 648 ms
コンパイル使用メモリ 11,208 KB
実行使用メモリ 15,480 KB
最終ジャッジ日時 2023-08-16 10:40:52
合計ジャッジ時間 5,119 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,296 KB
testcase_01 AC 79 ms
15,060 KB
testcase_02 AC 78 ms
14,964 KB
testcase_03 AC 78 ms
15,160 KB
testcase_04 AC 79 ms
15,272 KB
testcase_05 AC 78 ms
15,252 KB
testcase_06 AC 79 ms
15,092 KB
testcase_07 AC 80 ms
15,076 KB
testcase_08 AC 78 ms
15,236 KB
testcase_09 AC 78 ms
15,156 KB
testcase_10 AC 78 ms
15,160 KB
testcase_11 AC 78 ms
15,224 KB
testcase_12 AC 78 ms
15,044 KB
testcase_13 AC 79 ms
15,232 KB
testcase_14 AC 78 ms
15,128 KB
testcase_15 AC 79 ms
15,268 KB
testcase_16 AC 78 ms
15,204 KB
testcase_17 AC 78 ms
14,960 KB
testcase_18 AC 78 ms
15,248 KB
testcase_19 AC 78 ms
15,328 KB
testcase_20 AC 78 ms
15,236 KB
testcase_21 AC 78 ms
15,400 KB
testcase_22 AC 77 ms
15,348 KB
testcase_23 AC 79 ms
15,352 KB
testcase_24 AC 79 ms
15,480 KB
testcase_25 AC 79 ms
15,220 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = STDIN.gets.chomp

c = s.count("c")
w = s.count("w")

puts [c - 1, w].min

0