| Task: | Hypyt |
| Sender: | Jaksu |
| Submission time: | 2025-11-09 02:19:33 +0200 |
| Language: | Rust (2021) |
| Status: | READY |
| Result: | 30 |
| group | verdict | score |
|---|---|---|
| #1 | ACCEPTED | 10 |
| #2 | ACCEPTED | 20 |
| #3 | WRONG ANSWER | 0 |
| #4 | WRONG ANSWER | 0 |
| #5 | WRONG ANSWER | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | ACCEPTED | 0.00 s | 1, 2, 3, 4, 5 | details |
| #2 | ACCEPTED | 0.00 s | 1, 2, 3, 4, 5 | details |
| #3 | ACCEPTED | 0.00 s | 1, 2, 3, 4, 5 | details |
| #4 | ACCEPTED | 0.00 s | 1, 2, 3, 4, 5 | details |
| #5 | ACCEPTED | 0.00 s | 1, 2, 3, 4, 5 | details |
| #6 | ACCEPTED | 0.33 s | 2, 5 | details |
| #7 | ACCEPTED | 0.33 s | 2, 5 | details |
| #8 | ACCEPTED | 0.44 s | 2, 5 | details |
| #9 | ACCEPTED | 0.32 s | 3, 4, 5 | details |
| #10 | ACCEPTED | 0.33 s | 3, 4, 5 | details |
| #11 | WRONG ANSWER | 0.34 s | 3, 4, 5 | details |
| #12 | ACCEPTED | 0.36 s | 4, 5 | details |
| #13 | ACCEPTED | 0.37 s | 4, 5 | details |
| #14 | WRONG ANSWER | 0.36 s | 4, 5 | details |
| #15 | TIME LIMIT EXCEEDED | -- | 5 | details |
| #16 | TIME LIMIT EXCEEDED | -- | 5 | details |
| #17 | TIME LIMIT EXCEEDED | -- | 5 | details |
| #18 | TIME LIMIT EXCEEDED | -- | 5 | details |
| #19 | ACCEPTED | 0.39 s | 5 | details |
| #20 | ACCEPTED | 0.40 s | 5 | details |
| #21 | ACCEPTED | 0.33 s | 5 | details |
| #22 | ACCEPTED | 0.00 s | 1, 2, 3, 4, 5 | details |
| #23 | ACCEPTED | 0.00 s | 1, 2, 3, 4, 5 | details |
| #24 | ACCEPTED | 0.32 s | 5 | details |
| #25 | ACCEPTED | 0.31 s | 5 | details |
| #26 | ACCEPTED | 0.67 s | 5 | details |
| #27 | ACCEPTED | 0.31 s | 5 | details |
Compiler report
warning: unused variable: `nodes`
--> input/code.rs:18:13
|
18 | let mut nodes: Vec<(usize, usize)> = vec!();
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes`
|
= note: `#[warn(unused_variables)]` on by default
warning: variable does not need to be mutable
--> input/code.rs:18:9
|
18 | let mut nodes: Vec<(usize, usize)> = vec!();
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
warning: unused `Result` that must be used
--> input/code.rs:115:17
|
115 | writeln!(&mut out, "{val}");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
= note: `#[warn(unused_must_use)]` on by default
= note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused `Result` that must be...Code
use std::io::{self, Write};
use std::collections::{HashMap, HashSet, VecDeque};
//use rand::{random, random_bool, random_range};
//use std::time::{SystemTime, UNIX_EPOCH};
fn main() {
let mut input = String::new();
io::stdin().read_line(&mut input).expect("Failed to read input");
let startdata: Vec<usize> = input.split_whitespace().map(|e| e.parse::<usize>().unwrap()).collect();
let mut out = io::stdout().lock();
let mut rowgrid: Vec<Vec<usize>> = vec!();
let mut colgrid: Vec<Vec<usize>> = vec!();
let mut boolgrid: Vec<Vec<bool>> = vec!();
let mut nodes: Vec<(usize, usize)> = vec!();
for row in 0..startdata[0] {
rowgrid.push(Vec::new());
boolgrid.push(Vec::new());
let mut rowinput = String::new();
io::stdin().read_line(&mut rowinput).expect("Failed to read input");
let bytes = rowinput.into_bytes();
for c in 0..startdata[1] {
if row == 0 {
colgrid.push(Vec::new());
}
if bytes[c] == 46 {
rowgrid[row].push(c);
colgrid[c].push(row);
boolgrid[row].push(true);
} else {
boolgrid[row].push(false);
}
/*if random_bool(0.2) {
rowgrid[row].push(c);
colgrid[c].push(row);
boolgrid[row].push(true);
nodes.push((row, c));
} else {
boolgrid[row].push(false);
}*/
}
}
dbg!(&rowgrid);
//Rowtorow säilyttää mistä rivistä pääsee mihin riviin, ja käyttäen mitä nodea.
let mut rowtorow: HashMap<usize, HashSet<usize>> = HashMap::new();
for row in 0..rowgrid.len() {
rowtorow.insert(row, HashSet::new());
for node in rowgrid[row].iter() {
for rowneighbor in colgrid[*node].iter() {
if *rowneighbor != row {
rowtorow.entry(row).and_modify(|v| {v.insert(*rowneighbor);});
}
if rowtorow[&row].len() == startdata[0]-1 {
break;
}
}
}
}
//dbg!(&rowtorow);
//Distancehash säilyttää etäisyyden rivistä toiseen, ja rivin mihin matka eka liikkuu sekä
// rivi mistä matka vikana liikkuu.
let mut distancehash: HashMap<(usize, usize), (usize, usize, usize)> = HashMap::new();
'question: for _q in 0..startdata[2] {
let mut questioninput = String::new();
io::stdin().read_line(&mut questioninput).expect("Failed to read input");
let questiondata: Vec<usize> = questioninput.split_whitespace().map(|e| e.parse::<usize>().unwrap()-1).collect();
let source = (questiondata[0], questiondata[1]);
let dest = (questiondata[2], questiondata[3]);
/*let source = nodes[random_range(0..nodes.len())];
let dest = nodes[random_range(0..nodes.len())];
dbg!(&source);
dbg!(&dest);
io::stdin().read_line(&mut input).expect("Failed to read input");*/
if source == dest {
writeln!(&mut out, "0").expect("failed to write stdout");
continue 'question;
}
if source.0 == dest.0 || source.1 == dest.1 {
writeln!(&mut out, "1").expect("failed to write stdout");
continue 'question;
}
if boolgrid[source.0][dest.1] || boolgrid[dest.0][source.1] {
writeln!(&mut out, "2").expect("Failed to write to stdout");
continue 'question;
}
match distancehash.get(&(source.0, dest.0)) {
None => {}
Some(d) => {
let mut val = d.0;
if boolgrid[d.1][source.1] {
val -= 1;
}
if !boolgrid[d.2][dest.1] {
val += 1;
}
writeln!(&mut out, "{val}");
continue 'question;
}
}
distancehash.insert((source.0, source.0), (0, source.0, source.0));
let mut queue: VecDeque<usize> = VecDeque::new();
queue.push_front(source.0);
while queue.len() != 0 {
let row = queue.pop_back().unwrap();
let info = *distancehash.get(&(source.0, row)).unwrap();
let start = info.1;
let dist = info.0;
let neighborrows = &rowtorow[&row];
//dbg!(&row);
//dbg!(&info);
for neighborrow in neighborrows.iter() {
match distancehash.get(&(source.0, *neighborrow)) {
Some(d) => {
let curval = {
let mut val = dist+2;
if boolgrid[start][source.1] {
val -= 1;
}
if !boolgrid[row][dest.1] {
val += 1;
}
val
};
let prevval = if d.1 != source.0 {
let mut val = d.0;
if boolgrid[d.1][source.1] {
val -= 1;
}
if !boolgrid[d.2][dest.1] {
val += 1;
}
val
} else {
0
};
if curval < prevval {
distancehash.insert((source.0, *neighborrow), (dist+2, start, row));
queue.push_front(*neighborrow);
}
}
None => {
let newstart = if start == source.0 {
*neighborrow
} else {
start
};
distancehash.insert((source.0, *neighborrow), (dist+2, newstart, row));
queue.push_front(*neighborrow);
}
}
}
}
match distancehash.get(&(source.0, dest.0)) {
None => {writeln!(&mut out, "-1");}
Some(d) => {
//dbg!(d);
let mut val = d.0;
if boolgrid[d.1][source.1] {
val -= 1;
}
if !boolgrid[d.2][dest.1] {
val += 1;
}
writeln!(&mut out, "{val}");
}
}
};
}Test details
Test 1 (public)
Group: 1, 2, 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 4 6 5 .*.*** *...** *****. *..*.* ... |
| correct output |
|---|
| 1 0 3 3 -1 |
| user output |
|---|
| 1 0 3 3 -1 |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
2,
],
[
1,
2,
3,
],
[
5,
],
[
1,
2,
4,
],
]Test 2
Group: 1, 2, 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 10 10 10 .......... .....*.... ........*. *.*....*.. ... |
| correct output |
|---|
| 1 2 1 2 2 ... |
| user output |
|---|
| 1 2 1 2 2 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
],
[
0,
1,
2,
3,
4,
6,
7,
8,
9,
],
[
0,
1,
2,
3,
4,
5,
6,
7,
9,
],
[
1,
3,
4,
5,
6,
8,
9,
],
[
0,
1,
2,
3,
4,
5,
6,
7,
9,
],
[
0,
1,
3,
4,
5,
6,
8,
9,
],
[
0,
2,
3,
4,
6,
9,
],
[
0,
2,
4,
5,
6,
7,
8,
9,
],
[
0,
1,
2,
3,
4,
7,
8,
9,
],
[
0,
3,
5...Test 3
Group: 1, 2, 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 10 10 10 *...***.** *****.*... **..**.**. ..**.**.*. ... |
| correct output |
|---|
| 1 2 2 1 2 ... |
| user output |
|---|
| 1 2 2 1 2 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
1,
2,
3,
7,
],
[
5,
7,
8,
9,
],
[
2,
3,
6,
9,
],
[
0,
1,
4,
7,
9,
],
[
0,
1,
2,
3,
6,
7,
8,
9,
],
[
0,
1,
3,
8,
9,
],
[
1,
3,
4,
6,
8,
],
[
2,
3,
4,
8,
9,
],
[
0,
1,
2,
6,
],
[
2,
5,
9,
],
]Test 4
Group: 1, 2, 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 10 10 10 ***.*.**** ********** *.******** .*.***.**. ... |
| correct output |
|---|
| 3 4 2 3 4 ... |
| user output |
|---|
| 3 4 2 3 4 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
3,
5,
],
[],
[
1,
],
[
0,
2,
6,
9,
],
[],
[
5,
],
[
7,
],
[
2,
3,
9,
],
[
0,
4,
5,
],
[
1,
4,
8,
9,
],
]Test 5
Group: 1, 2, 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 10 10 1 .****.**** **.**..*** ********** *******..* ... |
| correct output |
|---|
| 7 |
| user output |
|---|
| 7 |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
5,
],
[
2,
5,
6,
],
[],
[
7,
8,
],
[],
[
0,
7,
],
[
4,
7,
],
[],
[
5,
],
[
3,
6,
],
]Test 6
Group: 2, 5
Verdict: ACCEPTED
| input |
|---|
| 250 250 250 .*...*.....*******..**...*....... |
| correct output |
|---|
| 2 3 3 2 2 ... |
| user output |
|---|
| 2 3 3 2 2 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
2,
3,
4,
6,
7,
8,
9,
10,
18,
19,
22,
23,
24,
26,
27,
28,
29,
30,
31,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
47,
48,
49,
50,
51,
52,
53,
55,
56,
57,
58,
60,
62,
63,
64,
65,
66,
67,
68,
69,
71,
72,
73,
74,
75,
76,
79,
80,
81,
82,
83,
84,
85,
86,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
101,
104,...Test 7
Group: 2, 5
Verdict: ACCEPTED
| input |
|---|
| 250 250 250 ...*......**.**.*.*..**..*..**... |
| correct output |
|---|
| 2 2 2 2 3 ... |
| user output |
|---|
| 2 2 2 2 3 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
1,
2,
4,
5,
6,
7,
8,
9,
12,
15,
17,
19,
20,
23,
24,
26,
27,
30,
31,
33,
37,
38,
39,
42,
44,
45,
46,
52,
55,
56,
57,
59,
60,
61,
62,
63,
64,
70,
72,
74,
78,
81,
82,
84,
87,
90,
92,
96,
98,
100,
101,
104,
105,
111,
112,
113,
116,
117,
119,
120,
123,
126,
127,
128,
129,
130,
131,
132,
133,
136,
140,
142,
143,
144,
146,
149,
150,...Test 8
Group: 2, 5
Verdict: ACCEPTED
| input |
|---|
| 250 250 250 **..**..****.****.*.***.***..*... |
| correct output |
|---|
| 2 3 3 3 3 ... |
| user output |
|---|
| 2 3 3 3 3 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
2,
3,
6,
7,
12,
17,
19,
23,
27,
28,
35,
47,
49,
51,
53,
54,
56,
59,
65,
66,
75,
77,
78,
82,
84,
86,
92,
96,
100,
105,
112,
116,
117,
122,
124,
126,
128,
129,
138,
141,
143,
148,
153,
157,
158,
159,
160,
163,
164,
165,
174,
180,
186,
187,
191,
192,
200,
201,
202,
207,
216,
217,
218,
219,
222,
223,
227,
229,
232,
234,
236,
238,
239,
241,
244,
246,
],...Test 9
Group: 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 40 40 200000 ...*.**.*..*.............*.*..... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| 2 2 2 2 2 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
1,
2,
4,
7,
9,
10,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
26,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
],
[
1,
2,
4,
5,
6,
7,
8,
9,
10,
11,
14,
16,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
],
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
15,...Test 10
Group: 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 40 40 200000 **.**..*.*.*.******....****.*.... |
| correct output |
|---|
| 2 1 3 2 2 ... |
| user output |
|---|
| 2 1 3 2 2 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
2,
5,
6,
8,
10,
12,
19,
20,
21,
22,
27,
29,
30,
31,
35,
36,
39,
],
[
0,
2,
3,
6,
7,
8,
9,
12,
14,
16,
23,
25,
30,
32,
33,
36,
],
[
1,
4,
7,
10,
13,
14,
15,
18,
21,
23,
24,
25,
26,
31,
34,
35,
36,
37,
38,
39,
],
[
0,
2,
3,
7,
8,
9,
11,
12,
14,
16,
17,
19,
20,
21,
23,
28,
29,
33,
35,
39,
],
[
1,
5,
6,
7,
8,...Test 11
Group: 3, 4, 5
Verdict: WRONG ANSWER
| input |
|---|
| 40 40 200000 .*.*.**.*****.***.*.****.**.**... |
| correct output |
|---|
| 3 3 3 3 3 ... |
| user output |
|---|
| 3 3 3 3 3 ... |
Feedback: Incorrect character on line 21 col 1: expected "3", got "5"
Error:
[input/code.rs:50] &rowgrid = [
[
0,
2,
4,
7,
13,
17,
19,
24,
27,
34,
35,
],
[
2,
13,
14,
18,
26,
28,
36,
],
[
4,
9,
10,
12,
25,
27,
34,
36,
],
[
15,
17,
23,
28,
31,
36,
],
[
0,
1,
7,
12,
16,
26,
27,
28,
33,
38,
],
[
1,
2,
4,
5,
8,
10,
11,
15,
16,
19,
28,
30,
35,
],
[
4,
18,
24,
],
[
4,
6,
7,
10,
12,
23,
25,
29,
33,
35,
36,
],
[
7,
11,
19,
20,...Test 12
Group: 4, 5
Verdict: ACCEPTED
| input |
|---|
| 80 80 200000 *....**.***..****...*.....*...... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| 2 2 2 2 2 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
1,
2,
3,
4,
7,
11,
12,
17,
18,
19,
21,
22,
23,
24,
25,
27,
28,
29,
30,
32,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
56,
58,
59,
60,
62,
63,
64,
65,
67,
69,
70,
71,
72,
74,
75,
76,
78,
],
[
0,
1,
2,
3,
4,
6,
7,
8,
9,
11,
12,
13,
14,
15,
16,
17,
19,
20,
22,
24,
25,
27,
29,
32,...Test 13
Group: 4, 5
Verdict: ACCEPTED
| input |
|---|
| 80 80 200000 .***.*..*.***..*****....**...*... |
| correct output |
|---|
| 3 2 2 3 2 ... |
| user output |
|---|
| 3 2 2 3 2 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
4,
6,
7,
9,
13,
14,
20,
21,
22,
23,
26,
27,
28,
30,
32,
33,
35,
36,
37,
38,
40,
43,
45,
46,
49,
52,
54,
56,
58,
59,
60,
62,
63,
64,
67,
74,
75,
78,
],
[
0,
1,
2,
5,
6,
7,
10,
11,
13,
14,
15,
19,
24,
25,
27,
29,
30,
32,
35,
36,
40,
42,
43,
44,
46,
49,
57,
58,
66,
69,
72,
73,
74,
75,
76,
79,
],
[
0,
1,
2,
4,...Test 14
Group: 4, 5
Verdict: WRONG ANSWER
| input |
|---|
| 80 80 200000 *******.*****.*..*..****...***... |
| correct output |
|---|
| 2 3 1 2 2 ... |
| user output |
|---|
| 2 3 1 2 2 ... |
Feedback: Incorrect character on line 195 col 1: expected "3", got "4"
Error:
[input/code.rs:50] &rowgrid = [
[
7,
13,
15,
16,
18,
19,
24,
25,
26,
33,
35,
37,
40,
41,
42,
49,
53,
57,
62,
65,
70,
72,
78,
],
[
11,
12,
14,
15,
16,
19,
27,
31,
34,
35,
39,
42,
48,
50,
54,
58,
64,
69,
78,
],
[
11,
12,
14,
18,
19,
26,
37,
44,
45,
47,
49,
60,
67,
69,
70,
74,
75,
],
[
1,
2,
5,
7,
13,
16,
18,
19,
20,
23,
28,
32,
38,
42,
45,
57,
58,
60,...Test 15
Group: 5
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 250 250 200000 *....*..*..*..**..*.........**... |
| correct output |
|---|
| 3 2 2 2 2 ... |
| user output |
|---|
| (empty) |
Test 16
Group: 5
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 250 250 200000 ..*....*..*......*.**.*.*..***... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| (empty) |
Test 17
Group: 5
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 250 250 200000 *..*.*****.*********.****.****... |
| correct output |
|---|
| 3 3 2 2 2 ... |
| user output |
|---|
| (empty) |
Test 18
Group: 5
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 250 250 200000 *********.**********.******.**... |
| correct output |
|---|
| 3 3 3 3 3 ... |
| user output |
|---|
| (empty) |
Test 19
Group: 5
Verdict: ACCEPTED
| input |
|---|
| 250 250 200000 .*****************************... |
| correct output |
|---|
| 104 422 145 93 65 ... |
| user output |
|---|
| 104 422 145 93 65 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
249,
],
[
1,
248,
],
[
2,
247,
],
[
3,
246,
],
[
4,
245,
],
[
5,
244,
],
[
6,
243,
],
[
7,
242,
],
[
8,
241,
],
[
9,
240,
],
[
10,
239,
],
[
11,
238,
],
[
12,
237,
],
[
13,
236,
],
[
14,
235,
],
[
15,
234,
],
[
16,
233,
],
[
17,
232,
],
[
18,
231,
],
[
19,
230,
],
[
20,
229,
],
[
21,
228,
],
[
22,
227,
],
[
23,
226,
],
[
24,
225,
],
[
25,
22...Test 20
Group: 5
Verdict: ACCEPTED
| input |
|---|
| 250 250 200000 ..****************************... |
| correct output |
|---|
| 57 155 38 65 98 ... |
| user output |
|---|
| 57 155 38 65 98 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
1,
248,
249,
],
[
0,
1,
248,
249,
],
[
2,
3,
246,
247,
],
[
2,
3,
246,
247,
],
[
4,
5,
244,
245,
],
[
4,
5,
244,
245,
],
[
6,
7,
242,
243,
],
[
6,
7,
242,
243,
],
[
8,
9,
240,
241,
],
[
8,
9,
240,
241,
],
[
10,
11,
238,
239,
],
[
10,
11,
238,
239,
],
[
12,
13,
236,
237,
],
[
12,
13,
236,
237,
],
[
14,
15,
234,
235,
],
[
14,
15,
234,...Test 21
Group: 5
Verdict: ACCEPTED
| input |
|---|
| 250 250 200000 .*****************************... |
| correct output |
|---|
| 498 498 498 498 498 ... |
| user output |
|---|
| 498 498 498 498 498 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
],
[
0,
1,
],
[
1,
2,
],
[
2,
3,
],
[
3,
4,
],
[
4,
5,
],
[
5,
6,
],
[
6,
7,
],
[
7,
8,
],
[
8,
9,
],
[
9,
10,
],
[
10,
11,
],
[
11,
12,
],
[
12,
13,
],
[
13,
14,
],
[
14,
15,
],
[
15,
16,
],
[
16,
17,
],
[
17,
18,
],
[
18,
19,
],
[
19,
20,
],
[
20,
21,
],
[
21,
22,
],
[
22,
23,
],
[
23,
24,
],
[
24,
25,
],
[
25,
26,
],...Test 22
Group: 1, 2, 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 10 1 10 * * . * ... |
| correct output |
|---|
| 0 1 1 0 0 ... |
| user output |
|---|
| 0 1 1 0 0 ... |
Error:
[input/code.rs:50] &rowgrid = [
[],
[],
[
0,
],
[],
[],
[
0,
],
[],
[],
[],
[
0,
],
]Test 23
Group: 1, 2, 3, 4, 5
Verdict: ACCEPTED
| input |
|---|
| 1 10 10 ........*. 1 7 1 10 1 4 1 7 1 5 1 1 ... |
| correct output |
|---|
| 1 1 1 1 1 ... |
| user output |
|---|
| 1 1 1 1 1 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
1,
2,
3,
4,
5,
6,
7,
9,
],
]Test 24
Group: 5
Verdict: ACCEPTED
| input |
|---|
| 250 1 200000 * . * . ... |
| correct output |
|---|
| 1 1 1 1 1 ... |
| user output |
|---|
| 1 1 1 1 1 ... |
Error:
[input/code.rs:50] &rowgrid = [
[],
[
0,
],
[],
[
0,
],
[
0,
],
[],
[],
[
0,
],
[],
[
0,
],
[],
[],
[],
[
0,
],
[
0,
],
[],
[],
[
0,
],
[
0,
],
[],
[],
[],
[
0,
],
[],
[],
[
0,
],
[],
[],
[],
[],
[
0,
],
[
0,
],
[
0,
],
[],
[
0,
],
[
0,
],
[
0,
],
[],
[],
[],
[],
[
0,
],
[
0,
],
[
0,
],
[],
[
0,
],
[
0,
],
[
0,
],
[
0,
],
[],
[
0,
],
[],
[
0,
],
[],
[],
[],
[],
[
0,
],
[],
[],
[],
[
0,
],
[],
[],
[...Test 25
Group: 5
Verdict: ACCEPTED
| input |
|---|
| 1 250 200000 *.*.*...*.*.**.***..**.*.*..**... |
| correct output |
|---|
| 1 1 1 1 1 ... |
| user output |
|---|
| 1 1 1 1 1 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
1,
3,
5,
6,
7,
9,
11,
14,
18,
19,
22,
24,
26,
27,
32,
34,
36,
39,
40,
41,
42,
43,
46,
49,
50,
52,
53,
55,
56,
57,
58,
59,
60,
61,
62,
63,
65,
67,
68,
70,
71,
72,
75,
78,
79,
81,
83,
85,
89,
90,
91,
92,
95,
97,
99,
102,
103,
104,
105,
108,
109,
110,
111,
115,
116,
117,
120,
121,
125,
127,
128,
129,
130,
132,
133,
135,
136,
137,
1...Test 26
Group: 5
Verdict: ACCEPTED
| input |
|---|
| 250 250 200000 ................................. |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| 2 2 2 2 2 ... |
Error:
[input/code.rs:50] &rowgrid = [
[
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,...Test 27
Group: 5
Verdict: ACCEPTED
| input |
|---|
| 250 250 200000 ******************************... |
| correct output |
|---|
| 0 0 0 0 0 ... |
| user output |
|---|
| 0 0 0 0 0 ... |
Error:
[input/code.rs:50] &rowgrid = [
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],...