結果

問題 No.279 木の数え上げ
ユーザー kmtrc130kmtrc130
提出日時 2017-05-24 10:31:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 361 bytes
コンパイル時間 814 ms
コンパイル使用メモリ 109,832 KB
実行使用メモリ 27,636 KB
最終ジャッジ日時 2023-10-19 19:55:09
合計ジャッジ時間 2,639 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
24,808 KB
testcase_01 AC 27 ms
24,800 KB
testcase_02 AC 27 ms
24,808 KB
testcase_03 AC 26 ms
24,812 KB
testcase_04 AC 27 ms
24,800 KB
testcase_05 AC 27 ms
24,808 KB
testcase_06 AC 26 ms
24,808 KB
testcase_07 AC 27 ms
24,800 KB
testcase_08 AC 27 ms
24,808 KB
testcase_09 AC 27 ms
24,800 KB
testcase_10 AC 68 ms
27,352 KB
testcase_11 AC 36 ms
24,716 KB
testcase_12 AC 54 ms
26,172 KB
testcase_13 AC 32 ms
24,716 KB
testcase_14 AC 71 ms
27,636 KB
testcase_15 AC 64 ms
26,940 KB
testcase_16 AC 60 ms
26,648 KB
testcase_17 AC 68 ms
27,380 KB
testcase_18 AC 48 ms
25,580 KB
testcase_19 AC 67 ms
27,280 KB
testcase_20 AC 70 ms
27,564 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;

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

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

        Array.Sort(cnt);

        Console.WriteLine(cnt[0]);
    }
}
0