Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
map<string, int> mp;
for(int i=0;i<n;i++){
string s;
cin>>s;
mp[s]++;
}
int m;
cin>>m;
for(int i=0;i<m;i++){
string s;
cin>>s;
if(mp.find(s)==mp.end()) cout<<"Sorry, not on the list.\n";
else{
if(mp[s]<1){
cout<<"Welcome!\n";
mp[s]++;
} else cout<<"Already inside!\n";
}
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1227 LUCC Party Check-in
- Contest
- LUCC Presents Intra LU Junior Programming Contest - Replay
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-09-02 16:18:30
- Judged At
- 2025-09-02 16:18:30
- Judged By
- Score
- 0
- Total Time
- 4ms
- Peak Memory
- 532.0 KiB