Weak test cases in meta hacker cup round 2 problem B

Revision en2, by lightning_mcqueen, 2025-11-16 00:38:00

Problem B has weak test cases.

Spoiler

My code got ac verdict but fails on test case

1
6 6
1 2 3 4 5 6 
5 5 5 5 1 1

Output should be 5 but it gives 6.

PS-From around ranks 1200 to 2100, people solved only problems A and B most of them have wrong sol for B.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English lightning_mcqueen 2025-11-16 00:38:00 105
en1 English lightning_mcqueen 2025-11-16 00:19:57 1847 Initial revision (published)