結果

問題 No.436 ccw
ユーザー NoNo
提出日時 2016-10-28 22:49:44
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 429 bytes
コンパイル時間 2,058 ms
コンパイル使用メモリ 105,688 KB
実行使用メモリ 23,580 KB
最終ジャッジ日時 2023-08-15 21:25:10
合計ジャッジ時間 4,251 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
21,456 KB
testcase_01 AC 47 ms
21,468 KB
testcase_02 AC 47 ms
21,584 KB
testcase_03 AC 47 ms
21,424 KB
testcase_04 AC 47 ms
19,420 KB
testcase_05 AC 47 ms
21,372 KB
testcase_06 AC 48 ms
21,476 KB
testcase_07 AC 48 ms
19,424 KB
testcase_08 AC 48 ms
23,360 KB
testcase_09 AC 47 ms
21,380 KB
testcase_10 AC 47 ms
21,444 KB
testcase_11 AC 51 ms
21,376 KB
testcase_12 AC 49 ms
23,580 KB
testcase_13 AC 49 ms
23,412 KB
testcase_14 AC 47 ms
19,428 KB
testcase_15 AC 48 ms
23,524 KB
testcase_16 AC 48 ms
21,472 KB
testcase_17 AC 48 ms
21,440 KB
testcase_18 AC 49 ms
21,396 KB
testcase_19 AC 47 ms
21,468 KB
testcase_20 AC 47 ms
23,384 KB
testcase_21 AC 51 ms
21,432 KB
testcase_22 AC 50 ms
21,400 KB
testcase_23 AC 51 ms
21,484 KB
testcase_24 AC 49 ms
21,548 KB
testcase_25 AC 49 ms
21,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;
using System.Threading.Tasks;

namespace yukikoda
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();

            int c = s.Where(x => x == 'c').Count() -1;
            int w = s.Where(x => x == 'w').Count() ;

            Console.WriteLine(Math.Min(c, w));
        }
    }
}
0