Submission #1306926
Source Code Expand
n = gets.to_i a = gets.split.map.with_index { |x, i| [i + 1, x.to_i] } a.sort { |a, b| b[1] - a[1] }.each { |x| puts x[0] }
Submission Info
Submission Time | |
---|---|
Task | C - 背の順 |
User | sei0o |
Language | Ruby (2.3.3) |
Score | 100 |
Code Size | 129 Byte |
Status | AC |
Exec Time | 300 ms |
Memory | 18296 KB |
Compile Error
./Main.rb:4: warning: shadowing outer local variable - a ./Main.rb:1: warning: assigned but unused variable - n
Judge Result
Set Name | Sample | Subtask1 | All | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 30 / 30 | 70 / 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 | 6 ms | 1788 KB |
0_01.txt | AC | 7 ms | 1788 KB |
0_02.txt | AC | 7 ms | 1788 KB |
1_00.txt | AC | 7 ms | 1788 KB |
1_01.txt | AC | 7 ms | 1788 KB |
1_02.txt | AC | 7 ms | 1788 KB |
1_03.txt | AC | 7 ms | 1788 KB |
1_04.txt | AC | 9 ms | 1788 KB |
1_05.txt | AC | 9 ms | 1788 KB |
1_06.txt | AC | 9 ms | 1788 KB |
1_07.txt | AC | 9 ms | 1788 KB |
1_08.txt | AC | 9 ms | 1788 KB |
1_09.txt | AC | 10 ms | 1788 KB |
1_10.txt | AC | 9 ms | 1788 KB |
1_11.txt | AC | 10 ms | 1788 KB |
1_12.txt | AC | 9 ms | 1788 KB |
1_13.txt | AC | 9 ms | 1788 KB |
1_14.txt | AC | 9 ms | 1788 KB |
1_15.txt | AC | 7 ms | 1788 KB |
2_00.txt | AC | 219 ms | 17776 KB |
2_01.txt | AC | 214 ms | 17784 KB |
2_02.txt | AC | 224 ms | 18288 KB |
2_03.txt | AC | 219 ms | 18296 KB |
2_04.txt | AC | 300 ms | 18160 KB |
2_05.txt | AC | 299 ms | 18160 KB |
2_06.txt | AC | 299 ms | 18288 KB |
2_07.txt | AC | 300 ms | 18160 KB |
2_08.txt | AC | 217 ms | 16564 KB |
2_09.txt | AC | 269 ms | 17836 KB |
2_10.txt | AC | 83 ms | 6556 KB |
2_11.txt | AC | 238 ms | 17160 KB |