QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#569116#9310. Permutation Counting 4nelieWA 0ms3676kbC++14306b2024-09-16 20:39:052024-09-16 20:39:05

Judging History

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

  • [2024-09-18 14:56:40]
  • hack成功,自动添加数据
  • (/hack/835)
  • [2024-09-18 14:41:06]
  • hack成功,自动添加数据
  • (/hack/831)
  • [2024-09-17 12:14:52]
  • hack成功,自动添加数据
  • (/hack/825)
  • [2024-09-16 20:39:05]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3676kb
  • [2024-09-16 20:39:05]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define N 200100
#define PII pair<int,int>
#define mod 998244353

int n;
int a[N];


signed main()
{
    cin>>n;
    for(int i=1;i<=n;i++)cin>>a[i];
    sort(a+1,a+n+1);
    cout<<a[n/2]<<endl;





    return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3676kb

input:

4
5
1 2
1 5
1 2
1 2
2 2
5
1 1
2 4
2 3
5 5
3 4
5
3 5
1 2
3 4
3 5
3 3
5
1 5
1 4
4 5
5 5
1 2

output:

1

result:

wrong answer 1st words differ - expected: '0', found: '1'