a.py (181B) [raw]
1 #!/usr/bin/env python3 2 import sys 3 4 prev = None 5 count = 0 6 for l in sys.stdin: 7 curr = int(l.strip()) 8 if prev and curr > prev: 9 count += 1 10 prev = curr 11 12 print(count)
aocAdvent of Code Solutions | |
git clone git://git.alexkarle.com.com/aoc | |
Log | Files | Refs | README | LICENSE |