Wrong Answer
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();
ll 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:57:44
- Judged At
- 2024-11-11 02:47:12
- Judged By
- Score
- 10
- Total Time
- 35ms
- Peak Memory
- 4.328 MiB