Submission #790326
Source Code Expand
import java.util.Arrays;
import java.util.Scanner;
/**
* Created by nakajo on 2016/07/02.
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
Student[] students = new Student[N];
for (int i = 0; i < N; i++) {
students[i] = new Student(i + 1, sc.nextInt());
}
Arrays.asList(students).stream().sorted((a, b) -> Integer.valueOf(b.height).compareTo(Integer.valueOf(a.height))).forEach(s -> {
System.out.println(s.num);
});
}
public static class Student {
public int num;
public int height;
public Student(int n, int h) {
this.num = n;
this.height = h;
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | C - 背の順 |
| User | nakajo |
| Language | Java8 (OpenJDK 1.8.0) |
| Score | 30 |
| Code Size | 815 Byte |
| Status | TLE |
| Exec Time | 2109 ms |
| Memory | 29412 KiB |
Judge Result
| Set Name | Sample | Subtask1 | All | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 30 / 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 | 340 ms | 15184 KiB |
| 0_01.txt | AC | 320 ms | 14532 KiB |
| 0_02.txt | AC | 308 ms | 14664 KiB |
| 1_00.txt | AC | 308 ms | 14668 KiB |
| 1_01.txt | AC | 308 ms | 14548 KiB |
| 1_02.txt | AC | 299 ms | 15052 KiB |
| 1_03.txt | AC | 309 ms | 14668 KiB |
| 1_04.txt | AC | 397 ms | 16620 KiB |
| 1_05.txt | AC | 387 ms | 16020 KiB |
| 1_06.txt | AC | 411 ms | 16544 KiB |
| 1_07.txt | AC | 395 ms | 16584 KiB |
| 1_08.txt | AC | 405 ms | 18080 KiB |
| 1_09.txt | AC | 398 ms | 16832 KiB |
| 1_10.txt | AC | 399 ms | 17012 KiB |
| 1_11.txt | AC | 400 ms | 18160 KiB |
| 1_12.txt | AC | 394 ms | 16812 KiB |
| 1_13.txt | AC | 402 ms | 16756 KiB |
| 1_14.txt | AC | 394 ms | 16576 KiB |
| 1_15.txt | AC | 325 ms | 15556 KiB |
| 2_00.txt | TLE | 2109 ms | 28668 KiB |
| 2_01.txt | TLE | 2109 ms | 28936 KiB |
| 2_02.txt | TLE | 2109 ms | 28472 KiB |
| 2_03.txt | TLE | 2109 ms | 27676 KiB |
| 2_04.txt | TLE | 2109 ms | 29360 KiB |
| 2_05.txt | TLE | 2109 ms | 29240 KiB |
| 2_06.txt | TLE | 2109 ms | 29168 KiB |
| 2_07.txt | TLE | 2105 ms | 28316 KiB |
| 2_08.txt | AC | 1897 ms | 29412 KiB |
| 2_09.txt | TLE | 2109 ms | 28900 KiB |
| 2_10.txt | AC | 1072 ms | 24896 KiB |
| 2_11.txt | AC | 1958 ms | 28800 KiB |