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

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Youssef_2 2024-05-16 19:29:56 709 Initial revision (published)