結果

問題 No.436 ccw
ユーザー _matumo__matumo_
提出日時 2018-08-18 13:56:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 418 bytes
コンパイル時間 2,644 ms
コンパイル使用メモリ 113,440 KB
実行使用メモリ 26,512 KB
最終ジャッジ日時 2024-04-23 04:41:53
合計ジャッジ時間 2,827 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
24,600 KB
testcase_01 AC 22 ms
24,496 KB
testcase_02 AC 20 ms
24,344 KB
testcase_03 AC 21 ms
24,484 KB
testcase_04 AC 21 ms
26,512 KB
testcase_05 AC 21 ms
26,508 KB
testcase_06 AC 21 ms
24,472 KB
testcase_07 AC 22 ms
24,492 KB
testcase_08 AC 22 ms
24,472 KB
testcase_09 AC 23 ms
22,068 KB
testcase_10 AC 20 ms
24,220 KB
testcase_11 AC 21 ms
26,416 KB
testcase_12 AC 21 ms
24,468 KB
testcase_13 AC 23 ms
24,856 KB
testcase_14 AC 20 ms
24,624 KB
testcase_15 AC 21 ms
26,392 KB
testcase_16 AC 20 ms
24,596 KB
testcase_17 AC 20 ms
24,456 KB
testcase_18 AC 20 ms
24,368 KB
testcase_19 AC 20 ms
22,068 KB
testcase_20 AC 21 ms
24,108 KB
testcase_21 AC 23 ms
24,536 KB
testcase_22 AC 24 ms
24,288 KB
testcase_23 AC 24 ms
26,344 KB
testcase_24 AC 24 ms
24,296 KB
testcase_25 AC 23 ms
24,408 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YukiCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            var ss = Console.ReadLine();
            var nc = ss.Count(c => c == 'c');
            var nw = ss.Count(c => c == 'w');
            Console.WriteLine(Math.Min(nc - 1, nw));
            Console.ReadLine();
        }
    }
}
0