結果

問題 No.3020 サンシャイン◯崎
ユーザー bluemeganebluemegane
提出日時 2018-09-14 12:57:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 371 bytes
コンパイル時間 2,601 ms
コンパイル使用メモリ 106,088 KB
実行使用メモリ 24,420 KB
最終ジャッジ日時 2023-08-25 02:06:01
合計ジャッジ時間 4,330 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,516 KB
testcase_01 AC 54 ms
20,532 KB
testcase_02 AC 61 ms
22,684 KB
testcase_03 AC 54 ms
20,720 KB
testcase_04 AC 54 ms
22,584 KB
testcase_05 AC 70 ms
21,908 KB
testcase_06 AC 54 ms
18,616 KB
testcase_07 AC 55 ms
18,604 KB
testcase_08 AC 65 ms
23,324 KB
testcase_09 AC 66 ms
23,364 KB
testcase_10 AC 69 ms
22,364 KB
testcase_11 AC 68 ms
22,176 KB
testcase_12 AC 70 ms
24,420 KB
testcase_13 AC 68 ms
22,316 KB
testcase_14 AC 70 ms
23,664 KB
testcase_15 AC 69 ms
22,340 KB
testcase_16 AC 67 ms
21,648 KB
testcase_17 AC 69 ms
23,652 KB
testcase_18 AC 68 ms
20,320 KB
testcase_19 AC 70 ms
24,344 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        var a = new string[] { "Y", "E", "A", "H", "!" };
        var b = new int[5];
        var s = Console.ReadLine().Trim();
        var sL = s.Length;
        for (int i = 0; i < 5; i++)
            b[i] = sL - s.Replace(a[i], "").Length;
        Console.WriteLine(string.Join(" ",b));
    }
}
0