Submission #1189796


Source Code Expand

using System;
class A{static void Main()
{
int a=int.Parse(Console.ReadLine());
for(int t=0;t<a;t++)
{
string s=Console.ReadLine();if(s.Length>=5){int ans=0;
for(int i=0;i<s.Length-5;i++)
{
string d=s.Substring(i,5);
if(d=="tokyo"||d=="kyoto"){ans++;i+=4;}
}Console.WriteLine(ans);
}else{Console.WriteLine("0");}
}
}}

Submission Info

Submission Time
Task A - 東京都
User rayhotate
Language C# (Mono 4.6.2.0)
Score 0
Code Size 331 Byte
Status WA
Exec Time 21 ms
Memory 11092 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
WA × 3
Set Name Test Cases
All 10_random_to_kyo.txt, 20_noised_tokyoto.txt, 99_teuchi.txt
Case Name Status Exec Time Memory
10_random_to_kyo.txt WA 21 ms 11092 KB
20_noised_tokyoto.txt WA 21 ms 9044 KB
99_teuchi.txt WA 21 ms 11092 KB