Accepted
Code
#include <bits/stdc++.h> // All praise is due to Allah alone, and peace and blessings be
using namespace std; // upon him, after whom there is no other Prophet.
int32_t main() {
cin.tie(0)->sync_with_stdio(false);
int32_t Case = 1; //cin >> Case;
for (int T = 1; T <= Case; T++) {
int m; cin >> m;
map<string, int> s;
while(m--) {
string st; cin >> st;
s[st];
}
cin >> m;
while(m--) {
string st; cin >> st;
if(s.count(st)) {
if(s[st] == 0) {
cout << "Welcome!\n";
s[st]++;
}
else cout << "Already inside!\n";
}
else {
cout << "Sorry, not on the list.\n";
}
}
function<void()> Test_Case = [&]() {
};
Test_Case();
}
return 0;
}
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 15:43:29
- Judged At
- 2025-09-02 15:43:29
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB