結果
| 問題 | No.430 文字列検索 |
| コンテスト | |
| ユーザー |
mrc1031
|
| 提出日時 | 2016-10-07 16:51:39 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 435 bytes |
| 記録 | |
| コンパイル時間 | 458 ms |
| コンパイル使用メモリ | 106,208 KB |
| 実行使用メモリ | 45,488 KB |
| 最終ジャッジ日時 | 2026-09-21 16:27:30 |
| 合計ジャッジ時間 | 26,767 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 4 WA * 3 TLE * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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);
}
}
mrc1031