data issue: two_apples_a_day.out

#4
by llllvvuu - opened

This file has only 80 cases, though the input has 90 cases. This affects both the output_dataset.parquet and standalone two_apples_a_day.out file.

There are also issues with the provided .cpp solution:

  • it is missing if (N == 1) return 1; after reading the input. this causes out-of-bounds access and wrong answer.
  • const int INF = (int)2e9 + 5; is too small. needs to be doubled, otherwise fails on case 82.

Sign up or log in to comment