結果

問題 No.3020 サンシャイン◯崎
ユーザー bluemeganebluemegane
提出日時 2018-09-14 12:54:26
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 462 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 101,768 KB
実行使用メモリ 23,740 KB
最終ジャッジ日時 2023-08-25 02:05:56
合計ジャッジ時間 4,218 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,556 KB
testcase_01 AC 55 ms
20,652 KB
testcase_02 AC 61 ms
22,660 KB
testcase_03 AC 54 ms
22,588 KB
testcase_04 AC 53 ms
18,364 KB
testcase_05 AC 69 ms
21,620 KB
testcase_06 AC 54 ms
20,612 KB
testcase_07 AC 55 ms
22,660 KB
testcase_08 AC 64 ms
21,392 KB
testcase_09 AC 65 ms
23,224 KB
testcase_10 AC 70 ms
22,176 KB
testcase_11 AC 66 ms
21,648 KB
testcase_12 AC 68 ms
21,864 KB
testcase_13 AC 68 ms
23,740 KB
testcase_14 AC 68 ms
21,736 KB
testcase_15 AC 66 ms
21,412 KB
testcase_16 AC 67 ms
21,724 KB
testcase_17 AC 66 ms
19,568 KB
testcase_18 AC 66 ms
22,280 KB
testcase_19 AC 69 ms
22,132 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;
        var sum = 0;
        for (int i = 0; i < 4; i++)
        {
            b[i] = sL - s.Replace(a[i], "").Length;
            sum += b[i];
        }
        b[4] = sL - sum;
        Console.WriteLine(string.Join(" ",b));
    }
}
0