22 lines
495 B
Python
22 lines
495 B
Python
def main():
|
|
test_cases = int(input())
|
|
while (test_cases != 0):
|
|
test_case, token = input().split()
|
|
|
|
if token in test_case:
|
|
|
|
i = 1
|
|
while token in test_case:
|
|
print(f'{test_case.find(token) + i} ',end='')
|
|
test_case = test_case.replace(token, '', 1)
|
|
i += len(token)
|
|
|
|
else:
|
|
print("Not Found", end='')
|
|
|
|
print('\n')
|
|
test_cases -= 1
|
|
|
|
if __name__ == '__main__':
|
|
main()
|