Submission #4667636


Source Code Expand

#include<iostream>
#include<algorithm>
using namespace std;
struct bb
{
	long long bian;
	long long shengao;
}a[10000];
int co(const bb&a,const bb&b)
{
	return a.shengao>b.shengao;
}
int main()
{
	long long n;
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		cin>>a[i].shengao;
		a[i].bian=i;
	}
	sort(a+1,a+1+n,co);
	for(int i=1;i<=n;i++)
	{
		cout<<a[i].bian<<" ";
	}
	return 0;
}

Submission Info

Submission Time
Task C - 背の順
User luogu_bot3
Language C++ (GCC 5.4.1)
Score 30
Code Size 397 Byte
Status RE
Exec Time 129 ms
Memory 384 KB

Judge Result

Set Name Sample Subtask1 All
Score / Max Score 0 / 0 30 / 30 0 / 70
Status
AC × 3
AC × 19
AC × 19
RE × 12
Set Name Test Cases
Sample 0_00.txt, 0_01.txt, 0_02.txt
Subtask1 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt, 1_14.txt, 1_15.txt
All 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt, 1_14.txt, 1_15.txt, 2_00.txt, 2_01.txt, 2_02.txt, 2_03.txt, 2_04.txt, 2_05.txt, 2_06.txt, 2_07.txt, 2_08.txt, 2_09.txt, 2_10.txt, 2_11.txt
Case Name Status Exec Time Memory
0_00.txt AC 1 ms 256 KB
0_01.txt AC 1 ms 256 KB
0_02.txt AC 1 ms 256 KB
1_00.txt AC 1 ms 256 KB
1_01.txt AC 1 ms 256 KB
1_02.txt AC 1 ms 256 KB
1_03.txt AC 1 ms 256 KB
1_04.txt AC 1 ms 256 KB
1_05.txt AC 1 ms 256 KB
1_06.txt AC 2 ms 256 KB
1_07.txt AC 2 ms 256 KB
1_08.txt AC 2 ms 256 KB
1_09.txt AC 2 ms 256 KB
1_10.txt AC 2 ms 256 KB
1_11.txt AC 2 ms 256 KB
1_12.txt AC 2 ms 256 KB
1_13.txt AC 2 ms 256 KB
1_14.txt AC 2 ms 256 KB
1_15.txt AC 1 ms 256 KB
2_00.txt RE 129 ms 384 KB
2_01.txt RE 98 ms 384 KB
2_02.txt RE 99 ms 384 KB
2_03.txt RE 99 ms 384 KB
2_04.txt RE 99 ms 384 KB
2_05.txt RE 98 ms 384 KB
2_06.txt RE 99 ms 384 KB
2_07.txt RE 99 ms 384 KB
2_08.txt RE 100 ms 384 KB
2_09.txt RE 100 ms 384 KB
2_10.txt RE 101 ms 384 KB
2_11.txt RE 102 ms 384 KB