Compare commits

..

51 commits

Author SHA1 Message Date
Bruno BELANYI a2c2517a7f 2021: d13: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI e62325a60a 2021: d13: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 3967b92757 2021: d13: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 98841cf3db 2021: d13: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI b40a56679b 2021: d12: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 2f699b358e 2021: d12: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 4009264f57 2021: d12: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI ec1caac856 2021: d12: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI bbea9b4ff7 2021: d11: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 273ba69b90 2021: d11: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 55ba53cf2c 2021: d11: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 68a8f85b2f 2021: d11: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI bb1a65771c 2021: d10: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 88a363a860 2021: d10: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI bd6b7d3a41 2021: d10: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 73caa65bac 2021: d10: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 080df14cb3 2021: d09: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI ee3e84ed94 2021: d09: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI fd72f17d19 2021: d09: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 72345b56b0 2021: d09: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI d27bcfa2cd 2021: d08: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 7662776bcb 2021: d08: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 94185c4f8f 2021: d08: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 6d10eceaf9 2021: d08: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 1ff2d43e55 2021: d07: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 6200f68a3c 2021: d07: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 167b7e09cb 2021: d07: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI ddd01a3c61 2021: d07: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI b43044a693 2021: d06: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 74673e32aa 2021: d06: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 242b3c20fe 2021: d06: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 4232c62096 2021: d06: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 21a1039030 2021: d05: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI ac779bb621 2021: d05: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 15e7cf5eff 2021: d05: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 039e7f5214 2021: d05: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI ea66011fef 2021: d04: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI daa87d923d 2021: d04: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 2177287e01 2021: d04: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 484a9722ad 2021: d04: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 614d3447c5 2021: d03: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 8acf8aadaf 2021: d03: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI b15c1a0d57 2021: d03: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI cba9dd02f8 2021: d03: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 7956b96baa 2021: d02: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 4b03030ed6 2021: d02: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI a21310895c 2021: d02: ex1: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 05a6845e83 2021: d02: ex1: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI 357c18a5fa 2021: d01: ex2: add solution 2021-12-13 14:33:15 +01:00
Bruno BELANYI 175706ca68 2021: d01: ex2: add input 2021-12-13 14:33:15 +01:00
Bruno BELANYI b1bec40137 2021: d01: ex1: add solution 2021-12-13 14:33:15 +01:00

View file

@ -6,7 +6,7 @@ from typing import List
def solve(input: List[int]) -> int:
return sum(prev < cur for (prev, cur) in itertools.pairwise(input))
return sum(prev < cur for (prev, cur) in zip(input, input[1:]))
def main() -> None: