Submission #5293518
Source Code Expand
for _ in range(int(input())): s = input() count = 0 i = 0 while i < len(s): if s[i:i + 5] == 'tokyo' or s[i:i + 5] == 'kyoto': count += 1 i += 5 else: i += 1 print(count)
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | p_km |
Language | Python (3.4.3) |
Score | 100 |
Code Size | 254 Byte |
Status | AC |
Exec Time | 23 ms |
Memory | 3060 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 | 23 ms | 3060 KB |
20_noised_tokyoto.txt | AC | 22 ms | 2940 KB |
99_teuchi.txt | AC | 20 ms | 2936 KB |