/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 368.0 KiB
#2 Wrong Answer 1ms 400.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;

int main(){
    int m;
    cin >> m;
    map<string,int> mp;
    while(m--){
        string a; cin >> a;
        mp[a] = 1;
    }
    int n; cin >> n;
    while(n--){
        string a; cin >> a;
        if(mp.find(a) != mp.end()) cout << "Welcome!";
        else cout << "Sorry, not on the list." ;
    }

    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 16:06:22
Judged At
2025-09-02 16:06:22
Judged By
Score
0
Total Time
1ms
Peak Memory
400.0 KiB