Submit solution
Points:
0.70 (partial)
Time limit:
1.0s
Memory limit:
256M
Input:
stdin
Output:
stdout
Author:
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
In case the statement didn't load correctly, you can download the statement here: Statement
Comments
sao test lại có v[i] > 1e3 vậy ạ?
mọi người để ý trường hợp n = 0 ạ :<
Chắc do đề bẫy cho mấy code yếu, đề chỉ bảo ~n~ là số nguyên chứ không có nói nó phải nguyên dương :v
Vì nhiều người ping team nên team mình viết edit rồi nhé :V
Unofficial Solution: