What is wrong with my code?

Revision en1, by Invn1234, 2023-04-28 23:14:44

It is supposed to do this:

input:

3

4

1 1 1 1

5

8 7 1 3 4

1

5

output:

NO

YES

YES

my code:

https://mirror.codeforces.com/contest/1742/submission/203843549

can you send me the correct code?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Invn1234 2023-04-28 23:14:44 254 Initial revision (published)