/ 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 21ms 3.102 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 20ms 2.895 MiB
#3 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 21ms 3.109 MiB
#4 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 22ms 3.074 MiB
#5 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 20ms 3.117 MiB
#6 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 20ms 3.117 MiB
#7 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> IndexError: string index out of range 20ms 3.066 MiB

Code

t = int(input())

for _ in range(t):
	s = input()
	n = input()
	
	for i in range(len(s)):
		if n[i] in s:
			True
		i = i+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:53:28
Judged At
2024-10-03 14:04:33
Judged By
Score
0
Total Time
22ms
Peak Memory
3.117 MiB