Submission #5240691


Source Code Expand

n = int(input())
c = list(map(str, [input() for i in range(n)]))

print(n)
print(c)
count =0
for i in range(n):
    c_str = c[i]
    a = c_str.count('tokyo')
    c_str = c_str.replace('tokyo','',a)
    b = c_str.count('kyoto')
    c_str = c_str.replace('kyoto','',b)
    tokyo_kyoto = a+b
for i in range(n):
    c_str = c[i]
    a = c_str.count('kyoto')
    c_str = c_str.replace('kyoto','',a)
    b = c_str.count('tokyo')
    c_str = c_str.replace('tokyo','',b)
    kyoto_tokyo = a+b
print(max(tokyo_kyoto,kyoto_tokyo))

Submission Info

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