2023 - Day 12 part 1 - unfinished
This commit is contained in:
		
							parent
							
								
									744c5e0eb1
								
							
						
					
					
						commit
						6d89d17939
					
				
					 2 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										9
									
								
								2023/12/12.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								2023/12/12.py
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					#!/usr/bin/env python
 | 
				
			||||||
 | 
					# 2023 - Advent Of Code 12 - part 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					file = 'input_example.txt'
 | 
				
			||||||
 | 
					# file = 'input.txt'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# pylint: disable=consider-using-with
 | 
				
			||||||
 | 
					input_lines = [line.strip('\n') for line in open(file, encoding="utf-8")]
 | 
				
			||||||
 | 
					print(f'map: ({len(input_lines[0])}, {len(input_lines)})')
 | 
				
			||||||
							
								
								
									
										6
									
								
								2023/12/input_example.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								2023/12/input_example.txt
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					???.### 1,1,3
 | 
				
			||||||
 | 
					.??..??...?##. 1,1,3
 | 
				
			||||||
 | 
					?#?#?#?#?#?#?#? 1,3,1,6
 | 
				
			||||||
 | 
					????.#...#... 4,1,1
 | 
				
			||||||
 | 
					????.######..#####. 1,6,5
 | 
				
			||||||
 | 
					?###???????? 3,2,1
 | 
				
			||||||
		Loading…
	
		Reference in a new issue