Can someone help find what is wrong with my code?

Правка en2, от horribleCoder, 2025-02-20 02:14:03

This is for USACO Silver Open problem 1 here: https://usaco.org/index.php?page=viewproblem2&cpid=1422 My code below doesn't seem to have a bug in it, and is mostly the same to the solution given, but it only passes the test cases with N <=3 * 10^3 but the server simply says wrong answer, and not timeout, and I can't see any obvious oversights. Thanks to anyone who looked at this. Code: https://replit.com/@ethantherobot7/USACO-OPEN-2024-S1?v=1

Теги greedy, sorting

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский horribleCoder 2025-02-20 02:14:03 2615 Added replit link to code.
en1 Английский horribleCoder 2025-02-20 02:08:59 3062 Initial revision (published)