/ 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 20ms 2.926 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 20ms 3.121 MiB
#3 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 20ms 3.078 MiB
#4 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 20ms 3.09 MiB
#5 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 20ms 3.062 MiB
#6 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 21ms 3.07 MiB
#7 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 21ms 2.914 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-10-03 14:04:32
Judged By
Score
0
Total Time
21ms
Peak Memory
3.121 MiB