Submission #5245944
Source Code Expand
T = int(input()) for _ in range(T): S = input() cnt = 0 while True: place_tokyo = S.find("tokyo") place_kyoto = S.find("kyoto") if place_tokyo == -1 and place_kyoto == -1: print(cnt) break elif place_tokyo>0 and place_kyoto>0: cnt += 1 S = S[min(place_tokyo,place_kyoto)+5:] else: cnt += 1 S = S[max(place_tokyo,place_kyoto)+5:]
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | takkii |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 467 Byte |
Status | WA |
Exec Time | 18 ms |
Memory | 3060 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 | 18 ms | 3060 KB |
20_noised_tokyoto.txt | WA | 18 ms | 3060 KB |
99_teuchi.txt | WA | 18 ms | 2940 KB |