結果

問題 No.279 木の数え上げ
ユーザー curryudon08curryudon08
提出日時 2020-07-21 18:03:10
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 415 bytes
コンパイル時間 2,057 ms
コンパイル使用メモリ 103,472 KB
実行使用メモリ 28,560 KB
最終ジャッジ日時 2023-08-28 19:24:38
合計ジャッジ時間 4,645 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
23,364 KB
testcase_01 AC 51 ms
21,448 KB
testcase_02 AC 50 ms
19,332 KB
testcase_03 AC 51 ms
21,344 KB
testcase_04 AC 51 ms
21,336 KB
testcase_05 AC 51 ms
21,224 KB
testcase_06 AC 51 ms
21,480 KB
testcase_07 AC 51 ms
21,328 KB
testcase_08 AC 51 ms
21,292 KB
testcase_09 AC 51 ms
23,392 KB
testcase_10 AC 105 ms
28,192 KB
testcase_11 AC 63 ms
21,888 KB
testcase_12 AC 89 ms
26,468 KB
testcase_13 AC 60 ms
21,272 KB
testcase_14 AC 109 ms
26,752 KB
testcase_15 AC 100 ms
27,564 KB
testcase_16 AC 95 ms
25,164 KB
testcase_17 AC 106 ms
26,224 KB
testcase_18 AC 80 ms
23,460 KB
testcase_19 AC 105 ms
26,028 KB
testcase_20 AC 109 ms
28,560 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.Linq;

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

            var cnt = new int[3];
            cnt[0] = s.Count(c => c == 't');
            cnt[1] = s.Count(c => c == 'r');
            cnt[2] = s.Count(c => c == 'e') / 2;

            Console.WriteLine(cnt.Min());
        }
    }
}
0