Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int t;
cin>>t;
multiset<string>s;
for(int i=0; i<t; i++)
{
string x;
cin>>x;
s.insert(x);
}
int y;
cin>>y;
for(int i=0; i<y; i++)
{
string e;
cin>>e;
if(s.find(e)!= s.end())
{
cout<<"Welcome!"<<endl;
}
else if(s.find(e)==s.find(e))
{
cout<<"Already inside!"<<endl;;
}
else{
cout<<"Sorry, not on the list."<<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 06:54:48
- Judged At
- 2025-09-01 06:54:48
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB