結果

問題 No.279 木の数え上げ
ユーザー _matumo__matumo_
提出日時 2018-07-28 23:59:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 576 bytes
コンパイル時間 2,208 ms
コンパイル使用メモリ 103,700 KB
実行使用メモリ 26,540 KB
最終ジャッジ日時 2023-09-20 19:29:06
合計ジャッジ時間 4,760 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
23,476 KB
testcase_01 AC 54 ms
21,396 KB
testcase_02 AC 54 ms
21,500 KB
testcase_03 AC 55 ms
21,376 KB
testcase_04 AC 55 ms
21,568 KB
testcase_05 AC 55 ms
23,508 KB
testcase_06 AC 54 ms
23,448 KB
testcase_07 AC 53 ms
21,404 KB
testcase_08 AC 55 ms
21,396 KB
testcase_09 AC 54 ms
21,484 KB
testcase_10 AC 110 ms
26,500 KB
testcase_11 AC 66 ms
21,640 KB
testcase_12 AC 92 ms
21,336 KB
testcase_13 AC 61 ms
21,404 KB
testcase_14 AC 114 ms
24,752 KB
testcase_15 AC 104 ms
24,280 KB
testcase_16 AC 100 ms
23,780 KB
testcase_17 AC 111 ms
22,484 KB
testcase_18 AC 84 ms
22,708 KB
testcase_19 AC 109 ms
26,540 KB
testcase_20 AC 112 ms
24,688 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 va = Console.ReadLine().Where(c => c == 't' || c == 'r' || c == 'e');
            var nt = va.Count(c => c == 't');
            var nr = va.Count(c => c == 'r');
            var ne = va.Count(c => c == 'e') / 2;
            var na = nt < nr ? nt : nr;
            var nb = na < ne ? na : ne;
            Console.WriteLine(nb);
            Console.ReadLine();
        }
    }
}
0