Submission #532966
Source Code Expand
def cut(s): cnt = 0 while s: if s[:5] in ['tokyo', 'kyoto']: s = s[5:] cnt += 1 else: s = s[1:] return cnt T = int(input()) for i in range(T): print(cut(input()))
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | n_knuu |
Language | Python (3.4.2) |
Score | 100 |
Code Size | 245 Byte |
Status | AC |
Exec Time | 148 ms |
Memory | 6884 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 | 148 ms | 6756 KB |
20_noised_tokyoto.txt | AC | 107 ms | 6760 KB |
99_teuchi.txt | AC | 105 ms | 6884 KB |