/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 14ms 3.031 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 14ms 3.02 MiB

Code

t = int(input())

for _ in range(t):
	s = input()
	n = input()
	k = 0
	for i in range(len(s)):
		if n[i] in s[k]:
			True
		i = i+1
		k = k+1
	while True:
		print("YES")
	while False:
		print("NO")
		
			

Information

Submit By
Type
Submission
Problem
P1020 Favourite footballer
Contest
Brain booster - 1
Language
Python 3 (Python 3.12.3)
Submit At
2023-12-31 16:54:26
Judged At
2024-11-11 03:44:59
Judged By
Score
0
Total Time
14ms
Peak Memory
3.031 MiB