Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
string s[n];
for(int i=0;i<n;i++){
cin>>s[i];
}
int m;
cin>>m;
string x[m];
for(int i=0;i<m;i++){
cin>>x[i];
}
int l=1;
for(int i=0;i<m;i++){
int t=0;
for(int j=0;j<n;j++){
if(s[j]==x[i])t=1;
}
if(t==0)
cout<<"Sorry, not on the list."<<endl;
else if(t==1)cout<<"Welcome!"<<endl;
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1227 LUCC Party Check-in
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-09-01 07:44:31
- Judged At
- 2025-09-01 07:44:31
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB