hiho week 227 register

Ended

Participants:116

Verdict:Accepted
Score:100 / 100
Submitted:2018-11-05 11:40:21

Lang:Python2

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def sub_string(substrstr):
    index = 0
    for s in substr:
        m = len(str)
        flag = False
        for i in xrange(indexm):
            if str[i] == s:
                index = i + 1
                flag = True
                break
        if not flag:
            return False
    return True
case_num = int(raw_input())
case = []
for i in xrange(case_num):
    case.append(raw_input())
s = raw_input()
max_len = 0
for t in case:
    if sub_string(ts):
        max_len = max(max_lenlen(t))
print max_len
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX