Submission #1568810
Source Code Expand
using System; namespace kupc2015_a { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { string s = Console.ReadLine(); int ret = 0; for (int j = 0; j < s.Length - 4; j++) { if (s.Substring(j, 5) == "tokyo" || s.Substring(j, 5) == "kyoto") { ret++; j += 5; } } Console.WriteLine(ret); } } } }
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | mencotton |
Language | C# (Mono 4.6.2.0) |
Score | 0 |
Code Size | 673 Byte |
Status | WA |
Exec Time | 21 ms |
Memory | 11092 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
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 | 9044 KB |
20_noised_tokyoto.txt | WA | 21 ms | 11092 KB |
99_teuchi.txt | WA | 20 ms | 9044 KB |