QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#373611#6748. Spin the Wheelnahida_qaqWA 1ms5548kbC++20392b2024-04-01 20:59:302024-04-01 20:59:31

Judging History

你现在查看的是最新测评结果

  • [2024-04-01 20:59:31]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:5548kb
  • [2024-04-01 20:59:30]
  • 提交

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'