結果

問題 No.279 木の数え上げ
ユーザー fairy_lettucefairy_lettuce
提出日時 2020-07-19 22:04:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 1,982 ms
コンパイル使用メモリ 105,796 KB
実行使用メモリ 25,944 KB
最終ジャッジ日時 2023-08-22 15:39:49
合計ジャッジ時間 4,461 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
21,308 KB
testcase_01 AC 51 ms
21,264 KB
testcase_02 AC 51 ms
19,188 KB
testcase_03 AC 52 ms
21,308 KB
testcase_04 AC 53 ms
21,200 KB
testcase_05 AC 51 ms
21,204 KB
testcase_06 AC 51 ms
21,244 KB
testcase_07 AC 51 ms
23,216 KB
testcase_08 AC 50 ms
21,164 KB
testcase_09 AC 51 ms
23,232 KB
testcase_10 AC 93 ms
24,300 KB
testcase_11 AC 62 ms
23,472 KB
testcase_12 AC 80 ms
23,124 KB
testcase_13 AC 56 ms
19,144 KB
testcase_14 AC 97 ms
24,560 KB
testcase_15 AC 90 ms
25,944 KB
testcase_16 AC 85 ms
23,572 KB
testcase_17 AC 93 ms
24,332 KB
testcase_18 AC 74 ms
24,544 KB
testcase_19 AC 92 ms
24,172 KB
testcase_20 AC 95 ms
24,512 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;
static class A
{
    public static int Main()
    {
        var s=Console.ReadLine();
        int ans=Math.Min(s.Count(x=>x=='r'), s.Count(x=>x=='t'));
        ans=Math.Min(ans, s.Count(x=>x=='e')/2);
        Console.WriteLine(ans);
        return 0;
    }
}
0