d16-None; d17-P1; d18-P1&P2
This commit is contained in:
7
d18/Cargo.lock
generated
Normal file
7
d18/Cargo.lock
generated
Normal file
@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "d05"
|
||||
version = "0.1.0"
|
2136
d18/input.txt
2136
d18/input.txt
File diff suppressed because it is too large
Load Diff
BIN
d18/main.exe
Normal file
BIN
d18/main.exe
Normal file
Binary file not shown.
BIN
d18/main.pdb
Normal file
BIN
d18/main.pdb
Normal file
Binary file not shown.
@ -1,4 +1,56 @@
|
||||
use std::collections::HashSet;
|
||||
|
||||
|
||||
#[derive(Hash, PartialEq, Eq, Copy, Clone)]
|
||||
struct Pos {
|
||||
x: i32,
|
||||
y: i32,
|
||||
z: i32,
|
||||
}
|
||||
|
||||
impl Pos {
|
||||
fn from(x :i32, y :i32, z :i32) -> Self {
|
||||
Pos {x: x, y: y, z: z}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn run(inp :Vec<String>) {
|
||||
|
||||
// parse input
|
||||
let tmp :Vec<Vec<i32>> = inp.iter().map(|elem| elem.split(',').map(|num| num.parse::<i32>().unwrap()).collect()).collect();
|
||||
let droplets :HashSet<Pos> = tmp.iter().map(|drop| Pos {x: drop[0], y: drop[1], z: drop[2]}).collect();
|
||||
|
||||
let mut side_counter = 0;
|
||||
|
||||
for dp in &droplets {
|
||||
|
||||
// check each side if it is free
|
||||
// if it is free then count up by 1
|
||||
// else dont
|
||||
|
||||
let sides :Vec<Pos> = vec![
|
||||
|
||||
Pos::from(dp.x-1, dp.y, dp.z),
|
||||
Pos::from(dp.x+1, dp.y, dp.z),
|
||||
|
||||
Pos::from(dp.x, dp.y-1, dp.z),
|
||||
Pos::from(dp.x, dp.y+1, dp.z),
|
||||
|
||||
Pos::from(dp.x, dp.y, dp.z-1),
|
||||
Pos::from(dp.x, dp.y, dp.z+1),
|
||||
|
||||
];
|
||||
|
||||
|
||||
for side in sides {
|
||||
if !droplets.contains(&side) {
|
||||
side_counter += 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
println!("a1: {}", side_counter);
|
||||
|
||||
}
|
144
d18/src/a2.rs
144
d18/src/a2.rs
@ -1,5 +1,149 @@
|
||||
use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};
|
||||
|
||||
|
||||
#[derive(Hash, PartialEq, Eq, Copy, Clone)]
|
||||
struct Pos {
|
||||
x: i32,
|
||||
y: i32,
|
||||
z: i32,
|
||||
}
|
||||
|
||||
impl Pos {
|
||||
fn from(x :i32, y :i32, z :i32) -> Self {
|
||||
Pos { x: x, y: y, z: z }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
fn find_zmax(positions :&HashSet<Pos>) -> Pos {
|
||||
let mut max = Pos::from(0, 0, i32::MIN);
|
||||
positions.iter().for_each(|pos| {if pos.z > max.z { max = *pos; }});
|
||||
max
|
||||
}
|
||||
|
||||
fn find_zmin(positions :&HashSet<Pos>) -> Pos {
|
||||
let mut max = Pos::from(0, 0, i32::MAX);
|
||||
positions.iter().for_each(|pos| {if pos.z < max.z { max = *pos; }});
|
||||
max
|
||||
}
|
||||
|
||||
fn find_ymax(positions :&HashSet<Pos>) -> Pos {
|
||||
let mut max = Pos::from(0, i32::MIN, 0);
|
||||
positions.iter().for_each(|pos| {if pos.y > max.y { max = *pos; }});
|
||||
max
|
||||
}
|
||||
|
||||
fn find_ymin(positions :&HashSet<Pos>) -> Pos {
|
||||
let mut max = Pos::from(0, i32::MAX, 0);
|
||||
positions.iter().for_each(|pos| {if pos.y < max.y { max = *pos; }});
|
||||
max
|
||||
}
|
||||
|
||||
fn find_xmax(positions :&HashSet<Pos>) -> Pos {
|
||||
let mut max = Pos::from(i32::MIN, 0, 0);
|
||||
positions.iter().for_each(|pos| {if pos.x > max.x { max = *pos; }});
|
||||
max
|
||||
}
|
||||
|
||||
fn find_xmin(positions :&HashSet<Pos>) -> Pos {
|
||||
let mut max = Pos::from(i32::MAX, 0, 0);
|
||||
positions.iter().for_each(|pos| {if pos.x < max.x { max = *pos; }});
|
||||
max
|
||||
}
|
||||
|
||||
fn flood_fill(start :Pos, map :&mut HashSet<Pos>, lava :&HashSet<Pos>, min :&Pos, max :&Pos) {
|
||||
|
||||
let mut queue :VecDeque<Pos> = VecDeque::new();
|
||||
queue.push_back(start);
|
||||
|
||||
while !queue.is_empty() {
|
||||
|
||||
let cp = queue.pop_front().unwrap();
|
||||
|
||||
if !(cp.x > min.x && cp.x < max.x && cp.y > min.y && cp.y < max.y && cp.z > min.z && cp.z < max.z) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if map.contains(&cp) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if lava.contains(&cp) {
|
||||
continue;
|
||||
}
|
||||
|
||||
map.insert(cp);
|
||||
|
||||
queue.push_back(Pos::from(cp.x - 1, cp.y, cp.z));
|
||||
queue.push_back(Pos::from(cp.x + 1, cp.y, cp.z));
|
||||
queue.push_back(Pos::from(cp.x, cp.y - 1, cp.z));
|
||||
queue.push_back(Pos::from(cp.x, cp.y + 1, cp.z));
|
||||
queue.push_back(Pos::from(cp.x, cp.y, cp.z - 1));
|
||||
queue.push_back(Pos::from(cp.x, cp.y, cp.z + 1));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
pub fn run(inp :Vec<String>) {
|
||||
|
||||
// parse input
|
||||
let tmp :Vec<Vec<i32>> = inp.iter().map(|elem| elem.split(',').map(|num| num.parse::<i32>().unwrap()).collect()).collect();
|
||||
let droplets :HashSet<Pos> = tmp.iter().map(|drop| Pos::from(drop[0], drop[1], drop[2])).collect();
|
||||
|
||||
// highest, lowest, leftmost, rightmost, furthest and nearest droplet
|
||||
// construct a box around the lava at each sides maximum + 2
|
||||
// floodfill from a starting pooint (for example higest_point+1)
|
||||
// go through all filled pixels and check all 6 sides if there is a pixel
|
||||
|
||||
// find edges (treat them as WALL)
|
||||
let z_max = find_zmax(&droplets);
|
||||
let z_min = find_zmin(&droplets);
|
||||
let y_max = find_ymax(&droplets);
|
||||
let y_min = find_ymin(&droplets);
|
||||
let x_max = find_xmax(&droplets);
|
||||
let x_min = find_xmin(&droplets);
|
||||
|
||||
let min_edges = Pos::from(x_min.x - 3, y_min.y - 3, z_min.z - 3);
|
||||
let max_edges = Pos::from(x_max.x + 3, y_max.y + 3, z_max.z + 3);
|
||||
|
||||
let mut filled :HashSet<Pos> = HashSet::new();
|
||||
|
||||
// FloodFill the rest in a new HashSet
|
||||
flood_fill(Pos::from(z_max.x, z_max.y, z_max.z+1), &mut filled, &droplets, &min_edges, &max_edges);
|
||||
|
||||
// check all sides of all flooded pixels. If a side has a LAVA pixel next to it count +1
|
||||
let mut side_counter = 0;
|
||||
|
||||
for dp in &filled {
|
||||
|
||||
// check each side if it is free
|
||||
// if it is free then count up by 1
|
||||
// else dont
|
||||
|
||||
let sides :Vec<Pos> = vec![
|
||||
|
||||
Pos::from(dp.x-1, dp.y, dp.z),
|
||||
Pos::from(dp.x+1, dp.y, dp.z),
|
||||
|
||||
Pos::from(dp.x, dp.y-1, dp.z),
|
||||
Pos::from(dp.x, dp.y+1, dp.z),
|
||||
|
||||
Pos::from(dp.x, dp.y, dp.z-1),
|
||||
Pos::from(dp.x, dp.y, dp.z+1),
|
||||
|
||||
];
|
||||
|
||||
|
||||
for side in sides {
|
||||
if droplets.contains(&side) {
|
||||
side_counter += 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
println!("a2: {}", side_counter);
|
||||
|
||||
}
|
1
d18/target/.rustc_info.json
Normal file
1
d18/target/.rustc_info.json
Normal file
@ -0,0 +1 @@
|
||||
{"rustc_fingerprint":15594459422025777716,"outputs":{"8623966523033996810":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.65.0 (897e37553 2022-11-02)\nbinary: rustc\ncommit-hash: 897e37553bba8b42751c67658967889d11ecd120\ncommit-date: 2022-11-02\nhost: x86_64-pc-windows-msvc\nrelease: 1.65.0\nLLVM version: 15.0.0\n","stderr":""},"8204103499295538959":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\tfuec\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""},"10376369925670944939":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\tfuec\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""},"15697416045686424142":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\n","stderr":""}},"successes":{}}
|
3
d18/target/CACHEDIR.TAG
Normal file
3
d18/target/CACHEDIR.TAG
Normal file
@ -0,0 +1,3 @@
|
||||
Signature: 8a477f597d28d172789f06886806bc55
|
||||
# This file is a cache directory tag created by cargo.
|
||||
# For information about cache directory tags see https://bford.info/cachedir/
|
0
d18/target/debug/.cargo-lock
Normal file
0
d18/target/debug/.cargo-lock
Normal file
@ -0,0 +1 @@
|
||||
a62220af2acc103e
|
@ -0,0 +1 @@
|
||||
{"rustc":2347157018072859861,"features":"[]","target":16997346216964277088,"profile":7309141686862299243,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\d05-54bad1502471c435\\dep-bin-d05"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
BIN
d18/target/debug/.fingerprint/d05-54bad1502471c435/dep-bin-d05
Normal file
BIN
d18/target/debug/.fingerprint/d05-54bad1502471c435/dep-bin-d05
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
This file has an mtime of when this was started.
|
@ -0,0 +1,2 @@
|
||||
{"message":"unused imports: `thread`, `vec_deque`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src\\a2.rs","byte_start":43,"byte_end":52,"line_start":1,"line_end":1,"column_start":44,"column_end":53,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":44,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src\\a2.rs","byte_start":67,"byte_end":73,"line_start":1,"line_end":1,"column_start":68,"column_end":74,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":68,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the unused imports","code":null,"level":"help","spans":[{"file_name":"src\\a2.rs","byte_start":41,"byte_end":52,"line_start":1,"line_end":1,"column_start":42,"column_end":53,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":42,"highlight_end":53}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src\\a2.rs","byte_start":65,"byte_end":73,"line_start":1,"line_end":1,"column_start":66,"column_end":74,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":66,"highlight_end":74}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: unused imports: `thread`, `vec_deque`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m--> \u001b[0m\u001b[0msrc\\a2.rs:1:44\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m1\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0muse std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;11m^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;11m^^^^^^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mnote\u001b[0m\u001b[0m: `#[warn(unused_imports)]` on by default\u001b[0m\n\n"}
|
||||
{"message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: 1 warning emitted\u001b[0m\n\n"}
|
@ -0,0 +1 @@
|
||||
e737b342d3e62e08
|
@ -0,0 +1 @@
|
||||
{"rustc":2347157018072859861,"features":"[]","target":16997346216964277088,"profile":9251013656241001069,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\d05-60235cbe9d69ff8a\\dep-bin-d05"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
BIN
d18/target/debug/.fingerprint/d05-60235cbe9d69ff8a/dep-bin-d05
Normal file
BIN
d18/target/debug/.fingerprint/d05-60235cbe9d69ff8a/dep-bin-d05
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
This file has an mtime of when this was started.
|
@ -0,0 +1,2 @@
|
||||
{"message":"unused imports: `thread`, `vec_deque`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src\\a2.rs","byte_start":43,"byte_end":52,"line_start":1,"line_end":1,"column_start":44,"column_end":53,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":44,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src\\a2.rs","byte_start":67,"byte_end":73,"line_start":1,"line_end":1,"column_start":68,"column_end":74,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":68,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the unused imports","code":null,"level":"help","spans":[{"file_name":"src\\a2.rs","byte_start":41,"byte_end":52,"line_start":1,"line_end":1,"column_start":42,"column_end":53,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":42,"highlight_end":53}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src\\a2.rs","byte_start":65,"byte_end":73,"line_start":1,"line_end":1,"column_start":66,"column_end":74,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":66,"highlight_end":74}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: unused imports: `thread`, `vec_deque`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m--> \u001b[0m\u001b[0msrc\\a2.rs:1:44\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m1\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0muse std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;11m^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;11m^^^^^^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mnote\u001b[0m\u001b[0m: `#[warn(unused_imports)]` on by default\u001b[0m\n\n"}
|
||||
{"message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: 1 warning emitted\u001b[0m\n\n"}
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
This file has an mtime of when this was started.
|
@ -0,0 +1,2 @@
|
||||
{"message":"unused imports: `thread`, `vec_deque`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"src\\a2.rs","byte_start":43,"byte_end":52,"line_start":1,"line_end":1,"column_start":44,"column_end":53,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":44,"highlight_end":53}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src\\a2.rs","byte_start":67,"byte_end":73,"line_start":1,"line_end":1,"column_start":68,"column_end":74,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":68,"highlight_end":74}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the unused imports","code":null,"level":"help","spans":[{"file_name":"src\\a2.rs","byte_start":41,"byte_end":52,"line_start":1,"line_end":1,"column_start":42,"column_end":53,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":42,"highlight_end":53}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src\\a2.rs","byte_start":65,"byte_end":73,"line_start":1,"line_end":1,"column_start":66,"column_end":74,"is_primary":true,"text":[{"text":"use std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};","highlight_start":66,"highlight_end":74}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: unused imports: `thread`, `vec_deque`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m--> \u001b[0m\u001b[0msrc\\a2.rs:1:44\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m1\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0muse std::{collections::{HashSet, VecDeque, vec_deque}, hash::Hash, thread};\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;11m^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;11m^^^^^^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mnote\u001b[0m\u001b[0m: `#[warn(unused_imports)]` on by default\u001b[0m\n\n"}
|
||||
{"message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: 1 warning emitted\u001b[0m\n\n"}
|
@ -0,0 +1 @@
|
||||
f0fa31a79957e157
|
@ -0,0 +1 @@
|
||||
{"rustc":2347157018072859861,"features":"[]","target":16997346216964277088,"profile":1021633075455700787,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\d05-cd6375c08847f9de\\dep-test-bin-d05"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
1
d18/target/debug/d05.d
Normal file
1
d18/target/debug/d05.d
Normal file
@ -0,0 +1 @@
|
||||
C:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\target\debug\d05.exe: C:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\src\a1.rs C:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\src\a2.rs C:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\src\main.rs
|
BIN
d18/target/debug/d05.exe
Normal file
BIN
d18/target/debug/d05.exe
Normal file
Binary file not shown.
BIN
d18/target/debug/d05.pdb
Normal file
BIN
d18/target/debug/d05.pdb
Normal file
Binary file not shown.
7
d18/target/debug/deps/d05-54bad1502471c435.d
Normal file
7
d18/target/debug/deps/d05-54bad1502471c435.d
Normal file
@ -0,0 +1,7 @@
|
||||
c:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\target\debug\deps\d05-54bad1502471c435.rmeta: src\main.rs src\a1.rs src\a2.rs
|
||||
|
||||
c:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\target\debug\deps\d05-54bad1502471c435.d: src\main.rs src\a1.rs src\a2.rs
|
||||
|
||||
src\main.rs:
|
||||
src\a1.rs:
|
||||
src\a2.rs:
|
7
d18/target/debug/deps/d05-cd6375c08847f9de.d
Normal file
7
d18/target/debug/deps/d05-cd6375c08847f9de.d
Normal file
@ -0,0 +1,7 @@
|
||||
c:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\target\debug\deps\d05-cd6375c08847f9de.rmeta: src\main.rs src\a1.rs src\a2.rs
|
||||
|
||||
c:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\target\debug\deps\d05-cd6375c08847f9de.d: src\main.rs src\a1.rs src\a2.rs
|
||||
|
||||
src\main.rs:
|
||||
src\a1.rs:
|
||||
src\a2.rs:
|
7
d18/target/debug/deps/d05.d
Normal file
7
d18/target/debug/deps/d05.d
Normal file
@ -0,0 +1,7 @@
|
||||
C:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\target\debug\deps\d05.exe: src\main.rs src\a1.rs src\a2.rs
|
||||
|
||||
C:\personal\Programmierdaten\rust\advent_of_code\y2022\d18\target\debug\deps\d05.d: src\main.rs src\a1.rs src\a2.rs
|
||||
|
||||
src\main.rs:
|
||||
src\a1.rs:
|
||||
src\a2.rs:
|
BIN
d18/target/debug/deps/d05.exe
Normal file
BIN
d18/target/debug/deps/d05.exe
Normal file
Binary file not shown.
BIN
d18/target/debug/deps/d05.pdb
Normal file
BIN
d18/target/debug/deps/d05.pdb
Normal file
Binary file not shown.
0
d18/target/debug/deps/libd05-54bad1502471c435.rmeta
Normal file
0
d18/target/debug/deps/libd05-54bad1502471c435.rmeta
Normal file
0
d18/target/debug/deps/libd05-cd6375c08847f9de.rmeta
Normal file
0
d18/target/debug/deps/libd05-cd6375c08847f9de.rmeta
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user