Submission #1692251
Source Code Expand
N, K = gets.split.map(&:to_i) RS = gets.split.map(&:to_i) dp = RS.permutation(K) results = dp.map do |order| order.inject(0) { |x, y| (x + y) / 2.0 } end p results.max
Submission Info
Submission Time | |
---|---|
Task | C - AtCoderプログラミング講座 |
User | sada4 |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 177 Byte |
Status | TLE |
Exec Time | 2110 ms |
Memory | 17016 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 8 ms | 1788 KB |
00_sample_02.txt | AC | 8 ms | 1788 KB |
00_sample_03.txt | AC | 42 ms | 2172 KB |
00_sample_04.txt | TLE | 2110 ms | 17016 KB |
test_01.txt | AC | 8 ms | 1788 KB |
test_02.txt | TLE | 2108 ms | 4512 KB |
test_03.txt | TLE | 2108 ms | 5244 KB |
test_04.txt | AC | 8 ms | 1788 KB |
test_05.txt | TLE | 2108 ms | 4480 KB |
test_06.txt | TLE | 2108 ms | 5372 KB |
test_07.txt | AC | 8 ms | 1788 KB |
test_08.txt | TLE | 2108 ms | 6532 KB |
test_09.txt | TLE | 2108 ms | 5372 KB |
test_10.txt | AC | 8 ms | 1788 KB |
test_11.txt | TLE | 2108 ms | 5904 KB |
test_12.txt | TLE | 2108 ms | 5244 KB |
test_13.txt | TLE | 2108 ms | 4612 KB |
test_14.txt | TLE | 2109 ms | 12924 KB |
test_15.txt | TLE | 2109 ms | 7076 KB |
test_16.txt | TLE | 2108 ms | 7128 KB |
test_17.txt | TLE | 2108 ms | 6508 KB |
test_18.txt | TLE | 2108 ms | 4464 KB |
test_19.txt | TLE | 2109 ms | 6548 KB |
test_20.txt | TLE | 2108 ms | 6184 KB |
test_21.txt | AC | 15 ms | 1788 KB |
test_22.txt | TLE | 2108 ms | 6832 KB |
test_23.txt | TLE | 2109 ms | 9672 KB |
test_24.txt | TLE | 2109 ms | 7804 KB |
test_25.txt | TLE | 2108 ms | 4584 KB |
test_26.txt | TLE | 2108 ms | 4752 KB |
test_27.txt | TLE | 2109 ms | 9656 KB |
test_28.txt | AC | 173 ms | 3192 KB |
test_29.txt | TLE | 2108 ms | 4576 KB |
test_30.txt | TLE | 2109 ms | 10168 KB |