Submit solution
Points:
0.70
Time limit:
1.5s
Memory limit:
512M
Input:
stdin
Output:
stdout
Problem source:
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
Note: The limits of ~n~ and ~k~ are ~1 \le n \le 1000~, ~1 \le k \le 10^9~.
Comments