Submission #891657
Source Code Expand
gets rs = gets.split.map.with_index{|l, i| [i + 1, l.to_i].sort} puts rs.size - rs.uniq.size
Submission Info
Submission Time | |
---|---|
Task | B - Friendly Rabbits |
User | yantene |
Language | Ruby (2.3.3) |
Score | 200 |
Code Size | 98 Byte |
Status | AC |
Exec Time | 267 ms |
Memory | 23812 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 10 ms | 1788 KB |
0_01.txt | AC | 10 ms | 1788 KB |
0_02.txt | AC | 10 ms | 1788 KB |
1_00.txt | AC | 10 ms | 1788 KB |
1_01.txt | AC | 231 ms | 19972 KB |
1_02.txt | AC | 264 ms | 23684 KB |
1_03.txt | AC | 261 ms | 23300 KB |
1_04.txt | AC | 267 ms | 23684 KB |
1_05.txt | AC | 263 ms | 23812 KB |
1_06.txt | AC | 264 ms | 23684 KB |
1_07.txt | AC | 266 ms | 23684 KB |
1_08.txt | AC | 106 ms | 9340 KB |
1_09.txt | AC | 224 ms | 18692 KB |
1_10.txt | AC | 191 ms | 15236 KB |
1_11.txt | AC | 51 ms | 5116 KB |