結果

問題 No.3020 サンシャイン◯崎
ユーザー mbanmban
提出日時 2017-04-21 04:37:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 606 bytes
コンパイル時間 2,317 ms
コンパイル使用メモリ 103,976 KB
実行使用メモリ 23,632 KB
最終ジャッジ日時 2023-08-25 02:04:11
合計ジャッジ時間 4,751 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
23,632 KB
testcase_01 AC 59 ms
21,564 KB
testcase_02 AC 59 ms
21,564 KB
testcase_03 AC 59 ms
21,436 KB
testcase_04 AC 61 ms
23,540 KB
testcase_05 AC 65 ms
21,484 KB
testcase_06 AC 59 ms
21,596 KB
testcase_07 AC 59 ms
21,564 KB
testcase_08 AC 62 ms
21,572 KB
testcase_09 AC 62 ms
21,552 KB
testcase_10 AC 65 ms
21,444 KB
testcase_11 AC 63 ms
21,428 KB
testcase_12 AC 65 ms
23,592 KB
testcase_13 AC 65 ms
21,492 KB
testcase_14 AC 65 ms
23,476 KB
testcase_15 AC 65 ms
23,524 KB
testcase_16 AC 64 ms
23,536 KB
testcase_17 AC 64 ms
19,476 KB
testcase_18 AC 65 ms
23,492 KB
testcase_19 AC 65 ms
23,596 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;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
using System.IO;

class Program
{
    static void Main(string[] args)
    {
        var s = Console.ReadLine();
        string YEAH = "YEAH!";
        var map = new Dictionary<char, int>();
        foreach(var c in YEAH)
        {
            map[c] = 0;
        }

        foreach (var c in s)
        {
            map[c]++;
        }

        Console.WriteLine(string.Join(" ", map.Select(p => p.Value)));
    }
}

0