What is wrong with my code?

Правка en1, от 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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Invn1234 2023-04-28 23:14:44 254 Initial revision (published)