Submission #1307396
Source Code Expand
def sorting(lst): if len(lst) < 2: return lst else: tmp = lst[0] left = [] right = [] for i in range(1, len(lst)): if lst[i][1] > tmp[1]: left.append(lst[i]) else: right.append(lst[i]) newleft = sorting(left) newright = sorting(right) newleft.append(tmp) newleft.extend(newright) return newleft n = int(raw_input()) inpt = map(int, raw_input().split()) student = [] for i in range(0, n): student.append([i+1, inpt[i]]) anslist = sorting(student) for i in range(0, n): print anslist[i][0]
Submission Info
Submission Time | |
---|---|
Task | C - 背の順 |
User | altosaxqma |
Language | Python (2.7.6) |
Score | 0 |
Code Size | 566 Byte |
Status | RE |
Exec Time | 2113 ms |
Memory | 115828 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 30 | 0 / 70 | ||||||||||||
Status |
|
|
|
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 | 10 ms | 2696 KB |
0_01.txt | AC | 10 ms | 2696 KB |
0_02.txt | AC | 10 ms | 2696 KB |
1_00.txt | AC | 10 ms | 2696 KB |
1_01.txt | AC | 10 ms | 2696 KB |
1_02.txt | AC | 10 ms | 2696 KB |
1_03.txt | AC | 10 ms | 2696 KB |
1_04.txt | RE | 118 ms | 7964 KB |
1_05.txt | RE | 118 ms | 7964 KB |
1_06.txt | RE | 118 ms | 7972 KB |
1_07.txt | RE | 118 ms | 7972 KB |
1_08.txt | AC | 14 ms | 2820 KB |
1_09.txt | AC | 14 ms | 2820 KB |
1_10.txt | AC | 15 ms | 2820 KB |
1_11.txt | AC | 14 ms | 2820 KB |
1_12.txt | AC | 14 ms | 2696 KB |
1_13.txt | AC | 14 ms | 2820 KB |
1_14.txt | AC | 13 ms | 2696 KB |
1_15.txt | AC | 11 ms | 2696 KB |
2_00.txt | TLE | 2113 ms | 115572 KB |
2_01.txt | TLE | 2112 ms | 115828 KB |
2_02.txt | TLE | 2113 ms | 115536 KB |
2_03.txt | TLE | 2112 ms | 115024 KB |
2_04.txt | AC | 625 ms | 26204 KB |
2_05.txt | AC | 623 ms | 26972 KB |
2_06.txt | AC | 616 ms | 26588 KB |
2_07.txt | AC | 626 ms | 26332 KB |
2_08.txt | AC | 445 ms | 20140 KB |
2_09.txt | AC | 571 ms | 25936 KB |
2_10.txt | AC | 157 ms | 9468 KB |
2_11.txt | AC | 472 ms | 21460 KB |