結果

問題 No.430 文字列検索
ユーザー mrc1031mrc1031
提出日時 2016-10-07 16:51:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 1,692 ms
コンパイル使用メモリ 103,328 KB
実行使用メモリ 41,968 KB
最終ジャッジ日時 2023-08-14 01:51:52
合計ジャッジ時間 6,568 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
20,764 KB
testcase_01 WA -
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;

class Program
{
    static void Main(string[] args)
    {
        string S = Console.ReadLine();
        int M = int.Parse(Console.ReadLine());
        string C = "";
        int count = 0;

        for (int i = 0; i <= M - 1; i++)
        {
            C = Console.ReadLine();
            count += (S.Length - S.Replace(C, "").Length) / C.Length;
        }

        Console.WriteLine(count);
    }
}
0