Wrong Answer
Code
n=int(input())
list=[]
list1=[]
for i in range(n):
x=input()
list.append(x)
t=int(input())
for j in range(t):
y=input()
list1.append(y)
if (y in list and (list1.count(y)==1)):
print("Welcome!")
elif y in list and (list1.count(y)!=1):
print("Already inside!")
elif(y not in list):
print("Sorry, not on the list.")
Information
- Submit By
- Type
- Submission
- Problem
- P1227 LUCC Party Check-in
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2025-09-01 07:01:42
- Judged At
- 2025-09-01 07:01:42
- Judged By
- Score
- 0
- Total Time
- 17ms
- Peak Memory
- 3.129 MiB