| Task: | Snake mall |
| Sender: | aalto26bm_006 |
| Submission time: | 2026-09-07 17:49:51 +0300 |
| Language: | Rust (2021) |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | ACCEPTED | 0.00 s | details |
| #2 | ACCEPTED | 0.00 s | details |
| #3 | ACCEPTED | 0.00 s | details |
| #4 | ACCEPTED | 0.00 s | details |
| #5 | WRONG ANSWER | 0.00 s | details |
| #6 | WRONG ANSWER | 0.00 s | details |
| #7 | ACCEPTED | 0.00 s | details |
| #8 | WRONG ANSWER | 0.00 s | details |
| #9 | WRONG ANSWER | 0.00 s | details |
| #10 | WRONG ANSWER | 0.00 s | details |
| #11 | ACCEPTED | 0.00 s | details |
| #12 | ACCEPTED | 0.00 s | details |
| #13 | WRONG ANSWER | 0.00 s | details |
| #14 | WRONG ANSWER | 0.00 s | details |
| #15 | WRONG ANSWER | 0.00 s | details |
| #16 | ACCEPTED | 0.00 s | details |
| #17 | WRONG ANSWER | 0.00 s | details |
| #18 | WRONG ANSWER | 0.00 s | details |
| #19 | WRONG ANSWER | 0.00 s | details |
| #20 | WRONG ANSWER | 0.00 s | details |
| #21 | WRONG ANSWER | 0.00 s | details |
| #22 | WRONG ANSWER | 0.00 s | details |
| #23 | WRONG ANSWER | 0.00 s | details |
| #24 | WRONG ANSWER | 0.00 s | details |
| #25 | WRONG ANSWER | 0.00 s | details |
| #26 | WRONG ANSWER | 0.00 s | details |
| #27 | WRONG ANSWER | 0.00 s | details |
| #28 | WRONG ANSWER | 0.00 s | details |
| #29 | RUNTIME ERROR | 0.00 s | details |
| #30 | RUNTIME ERROR | 0.00 s | details |
| #31 | RUNTIME ERROR | 0.00 s | details |
| #32 | RUNTIME ERROR | 0.00 s | details |
| #33 | RUNTIME ERROR | 0.00 s | details |
| #34 | RUNTIME ERROR | 0.00 s | details |
| #35 | RUNTIME ERROR | 0.00 s | details |
| #36 | RUNTIME ERROR | 0.00 s | details |
| #37 | RUNTIME ERROR | 0.00 s | details |
| #38 | RUNTIME ERROR | 0.00 s | details |
| #39 | RUNTIME ERROR | 0.00 s | details |
| #40 | RUNTIME ERROR | 0.00 s | details |
| #41 | RUNTIME ERROR | 0.00 s | details |
| #42 | RUNTIME ERROR | 0.00 s | details |
| #43 | RUNTIME ERROR | 0.00 s | details |
| #44 | RUNTIME ERROR | 0.00 s | details |
| #45 | RUNTIME ERROR | 0.00 s | details |
| #46 | RUNTIME ERROR | 0.00 s | details |
| #47 | RUNTIME ERROR | 0.00 s | details |
| #48 | RUNTIME ERROR | 0.00 s | details |
| #49 | RUNTIME ERROR | 0.00 s | details |
| #50 | RUNTIME ERROR | 0.00 s | details |
| #51 | RUNTIME ERROR | 0.00 s | details |
| #52 | RUNTIME ERROR | 0.00 s | details |
| #53 | RUNTIME ERROR | 0.00 s | details |
| #54 | RUNTIME ERROR | 0.00 s | details |
| #55 | RUNTIME ERROR | 0.00 s | details |
| #56 | RUNTIME ERROR | 0.00 s | details |
| #57 | RUNTIME ERROR | 0.00 s | details |
| #58 | RUNTIME ERROR | 0.00 s | details |
| #59 | RUNTIME ERROR | 0.01 s | details |
| #60 | RUNTIME ERROR | 0.01 s | details |
| #61 | RUNTIME ERROR | 0.01 s | details |
| #62 | RUNTIME ERROR | 0.01 s | details |
| #63 | RUNTIME ERROR | 0.01 s | details |
| #64 | RUNTIME ERROR | 0.01 s | details |
| #65 | RUNTIME ERROR | 0.01 s | details |
| #66 | RUNTIME ERROR | 0.01 s | details |
| #67 | RUNTIME ERROR | 0.01 s | details |
| #68 | RUNTIME ERROR | 0.02 s | details |
| #69 | RUNTIME ERROR | 0.01 s | details |
| #70 | RUNTIME ERROR | 0.01 s | details |
| #71 | RUNTIME ERROR | 0.01 s | details |
| #72 | RUNTIME ERROR | 0.01 s | details |
Code
#![allow(unused)]
use core::num;
use std::io;
fn take_int() -> usize {
let mut input = String::new();
io::stdin().read_line(&mut input).unwrap();
return input.trim().parse::<usize>().unwrap();
}
fn take_vector() -> Vec<i128> {
let mut input = String::new();
io::stdin().read_line(&mut input).unwrap();
let arr: Vec<i128> = input
.trim()
.split_whitespace()
.map(|x| x.parse::<i128>().unwrap())
.collect();
return arr;
}
fn main() {
let mut num_shops: usize = take_int();
let mut spaces: Vec<i128> = take_vector();
let mut order: Vec<i128> = Vec::new();
for i in 0..num_shops {
order.push(spaces[i]);
}
let mut shop_entries: Vec<i128> = vec![-10000000; 1000];
spaces.sort_unstable();
let mut sum_distance: i128 = 0;
let mut right_distance: i128 = 0;
let mut left_distance: i128 = 0;
for i in 0..num_shops {
let t_r = right_distance + spaces[i];
let t_l = left_distance + spaces[i];
if t_r < t_l {
// better to move store to the right side of door
sum_distance += right_distance;
let index = spaces[i] as usize;
shop_entries[index] = right_distance;
shop_entries[index] = 0 - spaces[i] - right_distance;
right_distance += spaces[i];
} else {
sum_distance += left_distance;
let index = spaces[i] as usize;
shop_entries[index] = left_distance;
left_distance += spaces[i];
}
}
let sum_float = sum_distance as f64;
let num_float = num_shops as f64;
println!("{}", (sum_float / num_float));
for i in 0..order.len() {
let index = order[i] as usize;
print!("{} ", shop_entries[index]);
}
}
Test details
Test 1
Verdict: ACCEPTED
| input |
|---|
| 1 7 |
| correct output |
|---|
| 0.00000000000000000000 0 |
| user output |
|---|
| 0 0 |
Test 2
Verdict: ACCEPTED
| input |
|---|
| 2 9 1 |
| correct output |
|---|
| 0.00000000000000000000 -9 0 |
| user output |
|---|
| 0 -9 0 |
Test 3
Verdict: ACCEPTED
| input |
|---|
| 2 2 5 |
| correct output |
|---|
| 0.00000000000000000000 0 -5 |
| user output |
|---|
| 0 0 -5 |
Test 4
Verdict: ACCEPTED
| input |
|---|
| 3 8 3 1 |
| correct output |
|---|
| 0.33333333333333333334 1 -3 0 |
| user output |
|---|
| 0.3333333333333333 1 -3 0 |
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 3 2 1 1 |
| correct output |
|---|
| 0.33333333333333333334 1 0 -1 |
| user output |
|---|
| 0.3333333333333333 1 -1 -1 |
Test 6
Verdict: WRONG ANSWER
| input |
|---|
| 4 5 5 4 7 |
| correct output |
|---|
| 2.25000000000000000000 -5 4 0 -12 |
| user output |
|---|
| 2.25 4 4 0 -12 |
Test 7
Verdict: ACCEPTED
| input |
|---|
| 4 3 9 1 7 |
| correct output |
|---|
| 1.00000000000000000000 -3 -12 0 1 |
| user output |
|---|
| 1 -3 -12 0 1 |
Test 8
Verdict: WRONG ANSWER
| input |
|---|
| 4 2 5 7 2 |
| correct output |
|---|
| 1.00000000000000000000 0 2 -9 -2 |
| user output |
|---|
| 1 -2 2 -9 -2 |
Test 9
Verdict: WRONG ANSWER
| input |
|---|
| 5 6 6 8 9 7 |
| correct output |
|---|
| 5.00000000000000000000 0 -6 -14 13 6 |
| user output |
|---|
| 5 -6 -6 -14 13 6 |
Test 10
Verdict: WRONG ANSWER
| input |
|---|
| 5 5 10 8 10 1 |
| correct output |
|---|
| 3.00000000000000000000 -5 -15 1 9 0 |
| user output |
|---|
| 3 -5 9 1 9 0 |
Test 11
Verdict: ACCEPTED
| input |
|---|
| 5 5 2 1 10 6 |
| correct output |
|---|
| 1.79999999999999999996 1 -2 0 6 -8 |
| user output |
|---|
| 1.8 1 -2 0 6 -8 |
Test 12
Verdict: ACCEPTED
| input |
|---|
| 5 6 1 8 9 3 |
| correct output |
|---|
| 2.20000000000000000004 1 0 -11 7 -3 |
| user output |
|---|
| 2.2 1 0 -11 7 -3 |
Test 13
Verdict: WRONG ANSWER
| input |
|---|
| 5 10 10 6 2 10 |
| correct output |
|---|
| 4.00000000000000000000 2 -16 -6 0 12 |
| user output |
|---|
| 4 12 12 -6 0 12 |
Test 14
Verdict: WRONG ANSWER
| input |
|---|
| 5 3 1 9 9 3 |
| correct output |
|---|
| 1.60000000000000000002 -3 0 -12 4 1 |
| user output |
|---|
| 1.6 1 0 4 4 1 |
Test 15
Verdict: WRONG ANSWER
| input |
|---|
| 5 9 10 4 3 9 |
| correct output |
|---|
| 3.79999999999999999996 3 12 -4 0 -13 |
| user output |
|---|
| 3.8 -13 12 -4 0 -13 |
Test 16
Verdict: ACCEPTED
| input |
|---|
| 5 1 3 8 4 5 |
| correct output |
|---|
| 1.79999999999999999996 0 -3 5 1 -8 |
| user output |
|---|
| 1.8 0 -3 5 1 -8 |
Test 17
Verdict: WRONG ANSWER
| input |
|---|
| 5 9 1 10 3 9 |
| correct output |
|---|
| 2.79999999999999999996 1 0 10 -3 -12 |
| user output |
|---|
| 2.8 -12 0 10 -3 -12 |
Test 18
Verdict: WRONG ANSWER
| input |
|---|
| 5 1 4 6 5 5 |
| correct output |
|---|
| 2.20000000000000000004 0 -4 6 1 -9 |
| user output |
|---|
| 2.2 0 -4 6 -9 -9 |
Test 19
Verdict: WRONG ANSWER
| input |
|---|
| 10 6 6 8 9 7 9 6 9 5 7 |
| correct output |
|---|
| 12.50000000000000000000 -6 5 18 -28 11 26 -12 -37 0 -1... |
| user output |
|---|
| 12.5 -12 -12 18 -37 -19 -37 -12 -37... |
Test 20
Verdict: WRONG ANSWER
| input |
|---|
| 10 5 10 8 10 1 2 4 10 2 3 |
| correct output |
|---|
| 6.30000000000000000017 -10 -20 7 15 0 -2 3 -30 1 -5 |
| user output |
|---|
| 6.3 -10 -30 7 -30 0 1 3 -30 1 -5 |
Test 21
Verdict: WRONG ANSWER
| input |
|---|
| 10 5 2 1 10 6 10 5 5 5 4 |
| correct output |
|---|
| 7.00000000000000000000 -7 -2 0 15 -18 -28 5 -12 10 1 |
| user output |
|---|
| 7 10 -2 0 -28 -18 -28 10 10 10 1... |
Test 22
Verdict: WRONG ANSWER
| input |
|---|
| 10 6 1 8 9 3 2 6 6 9 5 |
| correct output |
|---|
| 7.40000000000000000009 4 0 -21 16 1 -2 -13 10 -30 -7 |
| user output |
|---|
| 7.4 10 0 -21 -30 1 -2 10 10 -30 -7... |
Test 23
Verdict: WRONG ANSWER
| input |
|---|
| 10 10 10 6 2 10 9 8 7 7 6 |
| correct output |
|---|
| 12.00000000000000000000 -31 24 -6 0 -41 15 -21 -13 8 2... |
| user output |
|---|
| 12 -41 -41 2 0 -41 15 -21 8 8 2 |
Test 24
Verdict: WRONG ANSWER
| input |
|---|
| 10 3 1 9 9 3 4 10 10 5 1 |
| correct output |
|---|
| 6.19999999999999999983 1 0 8 -18 -4 4 17 -28 -9 -1 |
| user output |
|---|
| 6.2 -4 -1 -18 -18 -4 4 -28 -28 -9 ... |
Test 25
Verdict: WRONG ANSWER
| input |
|---|
| 10 9 10 4 3 9 1 1 4 2 10 |
| correct output |
|---|
| 5.69999999999999999983 7 16 3 -4 -17 0 -1 -8 1 -27 |
| user output |
|---|
| 5.7 -17 -27 -8 -4 -17 -1 -1 -8 1 -... |
Test 26
Verdict: WRONG ANSWER
| input |
|---|
| 10 1 3 8 4 5 10 8 5 10 4 |
| correct output |
|---|
| 7.59999999999999999991 0 -3 10 1 5 18 -20 -12 -30 -7 |
| user output |
|---|
| 7.6 0 -3 -20 -7 -12 -30 -20 -12 -3... |
Test 27
Verdict: WRONG ANSWER
| input |
|---|
| 10 9 1 10 3 9 4 6 9 3 5 |
| correct output |
|---|
| 7.69999999999999999983 9 0 -32 -3 -22 -7 -13 18 1 4 |
| user output |
|---|
| 7.7 18 0 -32 1 18 -7 -13 18 1 4 |
Test 28
Verdict: WRONG ANSWER
| input |
|---|
| 10 1 4 6 5 5 1 2 4 2 1 |
| correct output |
|---|
| 3.79999999999999999996 0 -7 -18 -12 8 -1 -3 4 2 1 |
| user output |
|---|
| 3.8 1 4 -18 8 8 1 2 4 2 1 |
Test 29
Verdict: RUNTIME ERROR
| input |
|---|
| 100 5489 5929 7152 8443 6028 8580 ... |
| correct output |
|---|
| 90964.29999999999999715783 74284 85458 -146606 -202043 -9... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1060 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 30
Verdict: RUNTIME ERROR
| input |
|---|
| 100 4171 9972 7204 9326 2 1282 302... |
| correct output |
|---|
| 77339.28000000000000113687 -46232 232616 121562 204215 0 ... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1033 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 31
Verdict: RUNTIME ERROR
| input |
|---|
| 100 4360 1851 260 9316 5497 9478 4... |
| correct output |
|---|
| 80065.90999999999999658939 51373 -12220 0 -211309 -103085... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1070 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 32
Verdict: RUNTIME ERROR
| input |
|---|
| 100 5508 708 7082 8400 2910 1214 5... |
| correct output |
|---|
| 76412.04999999999999715783 -86475 -1562 -143221 178008 22... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1214 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 33
Verdict: RUNTIME ERROR
| input |
|---|
| 100 9671 9007 5473 1727 9727 8557 ... |
| correct output |
|---|
| 75971.21000000000000085265 219259 -195663 -73901 -7740 -2... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1082 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 34
Verdict: RUNTIME ERROR
| input |
|---|
| 100 2220 552 8708 8314 2068 3638 9... |
| correct output |
|---|
| 81504.38000000000000255795 12702 305 -191060 -173918 -134... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1110 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 35
Verdict: RUNTIME ERROR
| input |
|---|
| 100 8929 9475 3320 2095 8213 643 4... |
| correct output |
|---|
| 98091.53000000000000113687 227425 245627 15038 -6688 1939... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1077 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 36
Verdict: RUNTIME ERROR
| input |
|---|
| 100 764 2274 7800 3190 4385 9783 7... |
| correct output |
|---|
| 82178.84000000000000341061 820 9379 154555 28537 -63825 2... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1005 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 37
Verdict: RUNTIME ERROR
| input |
|---|
| 100 8735 112 9686 2395 8692 3776 5... |
| correct output |
|---|
| 73656.57000000000000028422 175588 0 -216288 12508 166896 ... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1139 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 38
Verdict: RUNTIME ERROR
| input |
|---|
| 100 104 3645 5019 4992 4958 76 133... |
| correct output |
|---|
| 82840.71000000000000085265 -104 -29264 62129 -65004 -6001... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1045 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 39
Verdict: RUNTIME ERROR
| input |
|---|
| 200 5489 5929 7152 8443 6028 8580 ... |
| correct output |
|---|
| 166400.76999999999999602096 -146741 171881 274870 360976 -... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1021 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 40
Verdict: RUNTIME ERROR
| input |
|---|
| 200 4171 9972 7204 9326 2 1282 302... |
| correct output |
|---|
| 164587.05500000000000682121 83173 489533 258918 432607 0 -... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1024 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 41
Verdict: RUNTIME ERROR
| input |
|---|
| 200 4360 1851 260 9316 5497 9478 4... |
| correct output |
|---|
| 176382.93500000000000227374 104099 14060 -391 424478 17846... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1070 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 42
Verdict: RUNTIME ERROR
| input |
|---|
| 200 5508 708 7082 8400 2910 1214 5... |
| correct output |
|---|
| 165621.71500000000000341061 -168224 2093 -283295 -385009 -... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1002 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 43
Verdict: RUNTIME ERROR
| input |
|---|
| 200 9671 9007 5473 1727 9727 8557 ... |
| correct output |
|---|
| 164854.96999999999999886313 -486476 -402225 -147610 14229 ... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1004 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 44
Verdict: RUNTIME ERROR
| input |
|---|
| 200 2220 552 8708 8314 2068 3638 9... |
| correct output |
|---|
| 159013.25499999999999545253 -28043 -2011 -367612 320831 -2... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1009 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 45
Verdict: RUNTIME ERROR
| input |
|---|
| 200 8929 9475 3320 2095 8213 643 4... |
| correct output |
|---|
| 180212.19499999999999317879 440079 467630 43360 16831 3722... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1077 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 46
Verdict: RUNTIME ERROR
| input |
|---|
| 200 764 2274 7800 3190 4385 9783 7... |
| correct output |
|---|
| 175529.90500000000000113687 1331 -20024 -325526 -53408 105... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1005 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 47
Verdict: RUNTIME ERROR
| input |
|---|
| 200 8735 112 9686 2395 8692 3776 5... |
| correct output |
|---|
| 160654.71999999999999886313 389155 84 453551 -27233 380463... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1004 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 48
Verdict: RUNTIME ERROR
| input |
|---|
| 200 104 3645 5019 4992 4958 76 133... |
| correct output |
|---|
| 146407.72499999999999431566 122 63279 -137066 -132047 1197... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1031 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 49
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 5489 5929 7152 8443 6028 8580 ... |
| correct output |
|---|
| 840008.18000000000000682121 -764408 904918 1312990 1746927... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1001 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 50
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 4171 9972 7204 9326 2 1282 302... |
| correct output |
|---|
| 818012.93400000000002592060 -406505 2466614 1257269 -21919... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1020 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 51
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 4360 1851 260 9316 5497 9478 4... |
| correct output |
|---|
| 818259.27699999999998681233 -516965 80832 -1883 -2122912 -... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 52
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 5508 708 7082 8400 2910 1214 5... |
| correct output |
|---|
| 839290.37500000000000000000 -796386 -13946 -1289360 179611... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1002 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 53
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 9671 9007 5473 1727 9727 8557 ... |
| correct output |
|---|
| 844107.27100000000001500666 -2394719 -2010910 724866 70575... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1004 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 54
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 2220 552 8708 8314 2068 3638 9... |
| correct output |
|---|
| 835171.67200000000002546585 133449 -6862 1892059 1722315 -... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1009 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 55
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 8929 9475 3320 2095 8213 643 4... |
| correct output |
|---|
| 835138.72399999999998954081 -2011744 -2279148 281221 99917... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1044 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 56
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 764 2274 7800 3190 4385 9783 7... |
| correct output |
|---|
| 848301.93200000000001637090 -14894 118956 -1506857 248380 ... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1005 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 57
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 8735 112 9686 2395 8692 3776 5... |
| correct output |
|---|
| 847855.73500000000001364242 1927512 -484 2330822 -127377 1... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1004 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 58
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 104 3645 5019 4992 4958 76 133... |
| correct output |
|---|
| 810879.10199999999997544364 301 -339312 595743 -593370 -58... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 59
Verdict: RUNTIME ERROR
| input |
|---|
| 10000 5489 5929 7152 8443 6028 8580 ... |
| correct output |
|---|
| 8331009.38110000000006039045 -7532183 -8853774 -12749000 17... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 60
Verdict: RUNTIME ERROR
| input |
|---|
| 20000 4171 9972 7204 9326 2 1282 302... |
| correct output |
|---|
| 16658676.70185000000037689460 8541215 49696242 25988233 -434... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 61
Verdict: RUNTIME ERROR
| input |
|---|
| 30000 4360 1851 260 9316 5497 9478 4... |
| correct output |
|---|
| 24632928.08096666666642704513 -14426863 2611798 -51623 64662... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 62
Verdict: RUNTIME ERROR
| input |
|---|
| 40000 5508 708 7082 8400 2910 1214 5... |
| correct output |
|---|
| 33326404.51449999999931605998 -30490967 -487438 50172328 -70... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 63
Verdict: RUNTIME ERROR
| input |
|---|
| 50000 9671 9007 5473 1727 9727 8557 ... |
| correct output |
|---|
| 41484606.27734000000054948032 -116431190 -100635342 -3704371... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 64
Verdict: RUNTIME ERROR
| input |
|---|
| 60000 2220 552 8708 8314 2068 3638 9... |
| correct output |
|---|
| 50232303.87408333333223708905 -7383738 457586 113865513 -103... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 65
Verdict: RUNTIME ERROR
| input |
|---|
| 70000 8929 9475 3320 2095 8213 643 4... |
| correct output |
|---|
| 58260491.75067142857005819678 139575995 157314744 -19542802 ... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 66
Verdict: RUNTIME ERROR
| input |
|---|
| 80000 764 2274 7800 3190 4385 9783 7... |
| correct output |
|---|
| 66643139.94197500000154832378 1177857 10380346 121430523 -20... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 67
Verdict: RUNTIME ERROR
| input |
|---|
| 90000 8735 112 9686 2395 8692 3776 5... |
| correct output |
|---|
| 74463534.82334444444131804630 -171236562 -29702 210138045 -1... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 68
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 104 3645 5019 4992 4958 76 133... |
| correct output |
|---|
| 82963443.71772999999666353688 26440 33439343 63119570 -62451... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 69
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 976 4305 7613 4128 2470 7154 1... |
| correct output |
|---|
| 83235638.46863999999914085492 -2384099 45948507 -144556931 -... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 70
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 8638 8006 2850 3465 733 9701 7... |
| correct output |
|---|
| 83651432.57076999999844701961 186889656 -160231991 -20196945... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 71
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 5469 57 7980 8100 8205 3669 12... |
| correct output |
|---|
| 83502401.06205000000045401976 -74695780 8161 159486994 16411... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:46:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Test 72
Verdict: RUNTIME ERROR
| input |
|---|
| 100000 3010 4738 2471 7615 9264 1943 ... |
| correct output |
|---|
| 83298361.61656999999831896275 22603055 -56087580 -15138325 1... |
| user output |
|---|
| (empty) |
Error:
thread 'main' panicked at input/code.rs:52:25: index out of bounds: the len is 1000 but the index is 1000 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
