結果

問題 No.3020 サンシャイン◯崎
ユーザー kmtrc130kmtrc130
提出日時 2017-05-25 13:16:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 1,000 ms
コード長 596 bytes
コンパイル時間 2,023 ms
コンパイル使用メモリ 104,660 KB
実行使用メモリ 26,952 KB
最終ジャッジ日時 2023-08-25 02:04:19
合計ジャッジ時間 4,202 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,592 KB
testcase_01 AC 54 ms
20,736 KB
testcase_02 AC 54 ms
20,560 KB
testcase_03 AC 54 ms
22,692 KB
testcase_04 AC 54 ms
20,568 KB
testcase_05 AC 69 ms
25,032 KB
testcase_06 AC 54 ms
22,644 KB
testcase_07 AC 54 ms
20,536 KB
testcase_08 AC 60 ms
22,588 KB
testcase_09 AC 60 ms
24,772 KB
testcase_10 AC 68 ms
24,836 KB
testcase_11 AC 65 ms
26,952 KB
testcase_12 AC 67 ms
26,880 KB
testcase_13 AC 67 ms
24,764 KB
testcase_14 AC 66 ms
24,808 KB
testcase_15 AC 65 ms
22,744 KB
testcase_16 AC 65 ms
24,672 KB
testcase_17 AC 68 ms
24,844 KB
testcase_18 AC 68 ms
26,780 KB
testcase_19 AC 68 ms
22,968 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;

class Program
{
    static void Main(string[] args)
    {
        // ジァァァァァァァァスティス!!!

        Hashtable htYEAH = new Hashtable();
        string yeah = "YEAH!";

        foreach (var c in yeah.ToCharArray())
        { htYEAH.Add(c, 0); }

        string S = Console.ReadLine();

        foreach (var c in S.ToCharArray())
        { htYEAH[c] = (int)htYEAH[c] + 1; }

        string ans = "";
        foreach (var c in yeah.ToCharArray())
        { ans += htYEAH[c] + " "; }

        Console.WriteLine(ans.Trim());
    }
}
0