y2015d22 tests work, solution incorrect and slow
This commit is contained in:
		
							
								
								
									
										20
									
								
								y2015/src/bin/d22.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								y2015/src/bin/d22.rs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| use std::fs; | ||||
|  | ||||
| use y2015::days::d22; | ||||
|  | ||||
| fn main() { | ||||
|     part1(); | ||||
|     part2(); | ||||
| } | ||||
|  | ||||
| fn part1() { | ||||
|     let root = env!("CARGO_MANIFEST_DIR"); | ||||
|     let content = fs::read_to_string(format!("{root}/resources/22_input.txt")).unwrap(); | ||||
|     println!("{}", d22::process_part1(&content)); | ||||
| } | ||||
|  | ||||
| fn part2() { | ||||
|     let root = env!("CARGO_MANIFEST_DIR"); | ||||
|     let content = fs::read_to_string(format!("{root}/resources/22_input.txt")).unwrap(); | ||||
|     println!("{}", d22::process_part2(&content)); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user