/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 532.0 KiB
#2 Wrong Answer 1ms 532.0 KiB

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