New pages

Jump to navigation Jump to search
New pages
Hide registered users | Hide bots | Show redirects
  • 17:09, 7 December 2024Advent of code (hist | edit) ‎[3,411 bytes]Mip (talk | contribs) (Created page with "Some tips to solve https://adventofcode.com/. == I/O == === Read a list of numbers === {| class=wikitable |- ! Code !! Output |- | <source lang="python"> print("Input:") for line in open(INPUT): print(line.strip()) </source> | <source lang="text"> Input: 3 4 4 3 2 5 1 3 3 9 3 3 </source> |- | <source lang="python"> F=[] # Flat for line in open(INPUT): numbers = list(map(int,line.split())) F.extend(numbers) print(f"{F}") </source> | <source lang...")