Day 4, first part
2 files changed, 21 insertions(+), 0 deletions(-) A day04/day04.krk A day04/day04.test
A day04/day04.krk => day04/day04.krk +15 -0
@@ 0,0 1,15 @@ #! /usr/bin/env kuroko from fileio import stdin let count = 0 for line in stdin.readlines(): let a, b = line.strip().split(",") let al, ar = map(int, a.split("-")) let bl, br = map(int, b.split("-")) if (al <= bl and br <= ar) or (bl <= al and ar <= br): count += 1 print(count)
A day04/day04.test => day04/day04.test +6 -0