結果

問題 No.3020 サンシャイン◯崎
ユーザー mencottonmencotton
提出日時 2017-12-23 22:26:31
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 611 bytes
コンパイル時間 2,048 ms
コンパイル使用メモリ 107,656 KB
実行使用メモリ 22,528 KB
最終ジャッジ日時 2023-08-25 02:05:14
合計ジャッジ時間 4,096 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
20,444 KB
testcase_01 AC 52 ms
18,540 KB
testcase_02 AC 52 ms
20,432 KB
testcase_03 AC 52 ms
20,500 KB
testcase_04 AC 52 ms
22,528 KB
testcase_05 AC 57 ms
22,524 KB
testcase_06 AC 52 ms
20,516 KB
testcase_07 AC 52 ms
20,520 KB
testcase_08 AC 54 ms
20,516 KB
testcase_09 AC 54 ms
20,512 KB
testcase_10 AC 56 ms
20,392 KB
testcase_11 AC 55 ms
20,380 KB
testcase_12 AC 56 ms
22,496 KB
testcase_13 AC 55 ms
20,520 KB
testcase_14 AC 56 ms
20,516 KB
testcase_15 AC 55 ms
20,436 KB
testcase_16 AC 55 ms
20,608 KB
testcase_17 AC 56 ms
22,492 KB
testcase_18 AC 55 ms
20,572 KB
testcase_19 AC 56 ms
20,440 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;
using System.Threading.Tasks;

namespace template
{
    class Program
    {
        static void Main(string[] args)
        {
            char[] hikaku = new char[] { 'Y', 'E', 'A', 'H', '!' };
            string s = Console.ReadLine();
            int[] ret = new int[5];
            for (int i = 0; i < s.Length; i++)
            {
                ret[Array.IndexOf(hikaku, s[i])]++;
            }
            for (int i = 0; i < 4; i++) Console.Write(ret[i] + " ");
            Console.WriteLine(ret[4]);
        }
    }
}
0