Submission #533072
Source Code Expand
length = int(input()) ans = list() for x in range(length): res = input() count = 0 while "tokyo" in res: count += 1 res = res.replace("tokyo", "", 1) while "kyoto" in res: count += 1 res = res.replace("kyoto", "", 1) ans.append(str(count)) print("\n".join(ans))
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | amane2katagiri |
Language | Python (2.7.3) |
Score | 0 |
Code Size | 327 Byte |
Status | RE |
Exec Time | 123 ms |
Memory | 8240 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 | RE | 123 ms | 8236 KB |
20_noised_tokyoto.txt | RE | 123 ms | 8240 KB |
99_teuchi.txt | RE | 123 ms | 8232 KB |