結果

問題 No.436 ccw
ユーザー bluemeganebluemegane
提出日時 2018-09-16 09:57:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 2,638 ms
コンパイル使用メモリ 99,604 KB
実行使用メモリ 23,972 KB
最終ジャッジ日時 2023-09-25 08:55:01
合計ジャッジ時間 4,971 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
20,544 KB
testcase_01 AC 54 ms
20,552 KB
testcase_02 AC 52 ms
20,440 KB
testcase_03 AC 53 ms
20,448 KB
testcase_04 AC 52 ms
20,528 KB
testcase_05 AC 54 ms
20,576 KB
testcase_06 AC 55 ms
22,484 KB
testcase_07 AC 53 ms
22,604 KB
testcase_08 AC 54 ms
20,636 KB
testcase_09 AC 53 ms
20,484 KB
testcase_10 AC 53 ms
20,524 KB
testcase_11 AC 54 ms
22,608 KB
testcase_12 AC 53 ms
20,468 KB
testcase_13 AC 54 ms
20,428 KB
testcase_14 AC 54 ms
20,556 KB
testcase_15 AC 53 ms
20,604 KB
testcase_16 AC 60 ms
20,644 KB
testcase_17 AC 53 ms
18,500 KB
testcase_18 AC 61 ms
22,704 KB
testcase_19 AC 61 ms
20,736 KB
testcase_20 AC 61 ms
20,812 KB
testcase_21 AC 67 ms
22,076 KB
testcase_22 AC 65 ms
23,972 KB
testcase_23 AC 64 ms
19,404 KB
testcase_24 AC 62 ms
21,336 KB
testcase_25 AC 63 ms
21,576 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        var s = Console.ReadLine().Trim();
        var sL = s.Length;
        var ccount = sL - s.Replace("c", "").Length;
        var wcount = sL - ccount;
        Console.WriteLine(ccount <= wcount ? ccount - 1 : wcount);
    }
}
0