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