結果

問題 No.3020 サンシャイン◯崎
ユーザー bluemeganebluemegane
提出日時 2018-09-14 12:47:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 418 bytes
コンパイル時間 2,035 ms
コンパイル使用メモリ 102,772 KB
実行使用メモリ 22,720 KB
最終ジャッジ日時 2023-08-25 02:05:42
合計ジャッジ時間 4,173 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,680 KB
testcase_01 AC 56 ms
20,560 KB
testcase_02 AC 53 ms
20,532 KB
testcase_03 AC 55 ms
20,660 KB
testcase_04 AC 55 ms
22,608 KB
testcase_05 AC 60 ms
20,484 KB
testcase_06 AC 55 ms
20,576 KB
testcase_07 AC 56 ms
20,568 KB
testcase_08 AC 57 ms
20,552 KB
testcase_09 AC 58 ms
20,684 KB
testcase_10 AC 59 ms
20,648 KB
testcase_11 AC 59 ms
22,568 KB
testcase_12 AC 59 ms
20,672 KB
testcase_13 AC 59 ms
20,544 KB
testcase_14 AC 58 ms
20,560 KB
testcase_15 AC 58 ms
20,616 KB
testcase_16 AC 59 ms
20,560 KB
testcase_17 AC 60 ms
22,720 KB
testcase_18 AC 58 ms
20,636 KB
testcase_19 AC 59 ms
20,540 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System.Collections.Generic;
using System;

public class Hello
{
    public static void Main()
    {
        var a = "YEAH!";
        var d = new Dictionary<char, int>();
        for (int i = 0; i < a.Length; i++) d[a[i]] = i;
        var b = new int[a.Length];
        var s = Console.ReadLine().Trim();
        foreach (var x in s)
            b[d[x]]++;
        Console.WriteLine(string.Join(" ", b));
    }
}
0