Submission #5439990


Source Code Expand

T = int(input())
S = list()

for i in range(T):
    S.append(input())

i = 0
while i < T:
    j = 0
    ans = 0
    while j < len(S[i])-4:
        if S[i][j:j+5] == "tokyo" or S[i][j:j+5] == "kyoto":
            ans += 1
            j += 5
        j += 1
    i += 1

    print(ans)

Submission Info

Submission Time
Task A - 東京都
User vanilla
Language Python (3.4.3)
Score 0
Code Size 298 Byte
Status WA
Exec Time 21 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 21 ms 3060 KB
20_noised_tokyoto.txt WA 21 ms 3060 KB
99_teuchi.txt WA 18 ms 3060 KB