From 8c4db5ed1f6d1f4e0d66a8ce6a8258c9558ae3a6 Mon Sep 17 00:00:00 2001 From: trimscash Date: Thu, 14 Mar 2024 04:17:31 +0900 Subject: [PATCH] fix: bug --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3fb6ad9..088d90e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -211,8 +211,8 @@ fn main() { let lens: Vec = Vec::from([skip_nums.len(), pick_lengths.len(), pick_offsets.len()]); let max_length = *lens.iter().max().unwrap(); - skip_nums.resize(max_length, 0); - pick_lengths.resize(max_length, 0); + skip_nums.resize(max_length, 1); + pick_lengths.resize(max_length, 1); pick_offsets.resize(max_length, 0); for ((skip_num, pick_offset), pick_length) in skip_nums