What is the difference between an array and a vector with the same size?

Revision en1, by Youssef_2, 2024-05-16 19:29:56

Hello!

https://codeforces.com/group/hTqC3XzK2z/contest/400007/problem/G

In this problem when I use an array it gets Ac but when I use a vector it gets wrong. Why?

This is Ac.

Acc

This is Wrong.

Wrong

This is the Comparison between them.

comp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Youssef_2 2024-05-16 19:29:56 709 Initial revision (published)