Submission #3772892


Source Code Expand

#include<iostream>
using namespace std;
int i,j,m;
struct p{
	long t,n;
}l[106];
int main(){
	cin>>m;
	for(i=0;i<m;i++){
		cin>>l[i].t;
		l[i].n=i+1;
	}
	for(i=m-1;i>=0;i--)
		for(j=i;j<m;j++)
			if(l[j].t<l[j+1].t)
				swap(l[j],l[j+1]);
	for(i=0;i<m;i++)
		cout<<l[i].n<<" ";
	cout<<endl;
}

Submission Info

Submission Time
Task C - 背の順
User The233
Language C++ (GCC 5.4.1)
Score 0
Code Size 311 Byte
Status RE
Exec Time 101 ms
Memory 256 KB

Judge Result

Set Name Sample Subtask1 All
Score / Max Score 0 / 0 0 / 30 0 / 70
Status
AC × 3
AC × 7
WA × 1
RE × 11
AC × 7
WA × 2
RE × 22
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 WA 1 ms 256 KB
1_05.txt RE 100 ms 256 KB
1_06.txt RE 100 ms 256 KB
1_07.txt RE 100 ms 256 KB
1_08.txt RE 99 ms 256 KB
1_09.txt RE 101 ms 256 KB
1_10.txt RE 99 ms 256 KB
1_11.txt RE 100 ms 256 KB
1_12.txt RE 101 ms 256 KB
1_13.txt RE 101 ms 256 KB
1_14.txt RE 100 ms 256 KB
1_15.txt RE 100 ms 256 KB
2_00.txt WA 1 ms 256 KB
2_01.txt RE 100 ms 256 KB
2_02.txt RE 100 ms 256 KB
2_03.txt RE 100 ms 256 KB
2_04.txt RE 101 ms 256 KB
2_05.txt RE 100 ms 256 KB
2_06.txt RE 100 ms 256 KB
2_07.txt RE 101 ms 256 KB
2_08.txt RE 99 ms 256 KB
2_09.txt RE 100 ms 256 KB
2_10.txt RE 100 ms 256 KB
2_11.txt RE 101 ms 256 KB