Submission #2669197
Source Code Expand
n = int(input()) for _ in range(n): cnt = 0 s = input() i = 5 while i <= len(s): if s[i - 5:i] == 'tokyo' or s[i - 5:i] == 'kyoto': cnt += 1 i += 5 else: i += 1 print(cnt)
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | mitsu_shino |
Language | Python (3.4.3) |
Score | 100 |
Code Size | 258 Byte |
Status | AC |
Exec Time | 21 ms |
Memory | 2940 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 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 | AC | 20 ms | 2940 KB |
20_noised_tokyoto.txt | AC | 21 ms | 2940 KB |
99_teuchi.txt | AC | 18 ms | 2940 KB |