Submission #2414466


Source Code Expand

t = int(input())
anslist = []
for i in range(t):
    s = input()
    ans = 0
    for j in range(len(s)+1):
        if s[:j].find('tokyo')!=-1:
            s = s[j:]
            ans += 1
        if s[:j].find('kyoto')!=-1:
            s = s[j:]
            ans += 1
    anslist.append(ans)

for x in anslist:
    print(x)

Submission Info

Submission Time
Task A - 東京都
User kaz573
Language Python (3.4.3)
Score 0
Code Size 335 Byte
Status WA
Exec Time 23 ms
Memory 3060 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
WA × 3
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 23 ms 2940 KB
20_noised_tokyoto.txt WA 23 ms 3060 KB
99_teuchi.txt WA 20 ms 3060 KB