What is wrong with this algorithm?

Revision en1, by Negationist, 2024-10-08 19:24:07

Problem: Array Game — https://codeforces.net/contest/1904/problem/C Idea of the code, consider all possible combinations of 2 elements to make diff, mn = min of, mn, diff, [first element greater than diff]-diff, [one element left of the first element greater than diff]-diff. Thanks so much.

My Code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Negationist 2024-10-08 19:24:07 1895 Initial revision (published)