CSES - IZhO 2017, day 1 - Longest beautiful sequence
  • Time limit: 3.00 s
  • Memory limit: 256 MB