/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 320.0 KiB
#2 Wrong Answer 32ms 4.328 MiB
#3 Wrong Answer 32ms 4.363 MiB

Code

#include<bits/stdc++.h>
#define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define ll long long
#define endl '\n'
using namespace std;
int main()
{
    optimize();
    int n;
    cin>>n;
    vector<ll>v(n),v1;
    map<ll,ll>m;
    for(auto &u:v)
    {
        cin>>u;
        m[u]++;
    }
    for(auto u:m)
    {
        if(u.first==1)v1.push_back(u.second);
    }
    for(auto u:v1)cout<<u<<" ";
    cout<<endl;


}

Information

Submit By
Type
Submission
Problem
P1095 Uncovering the Lone Heart
Contest
Brain Booster #6
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-03 16:55:33
Judged At
2024-11-11 02:47:17
Judged By
Score
10
Total Time
32ms
Peak Memory
4.363 MiB