QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#373611 | #6748. Spin the Wheel | nahida_qaq | WA | 1ms | 5548kb | C++20 | 392b | 2024-04-01 20:59:30 | 2024-04-01 20:59:31 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define io ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
const int N=1e6+10;
int a[N],b[N],c[N];
signed main()
{
io;
int t=1;
//cin>>t;
while(t--)
{
int n;
cin>>n;
int ans=0;
map<int,int>mp;
for(int i=0;i<n;i++)
{
cin>>a[i];
mp[a[i]]++;
}
cout<<mp.size();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 5548kb
input:
5 1 3 0 2 4
output:
5
result:
wrong answer 1st numbers differ - expected: '3', found: '5'