| # | User | Rating |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | maroonrk | 153 |
| 2 | Qingyu | 152 |
| 3 | nik_exists | 151 |
| 4 | AmShZ | 147 |
| 4 | maspy | 147 |
| 6 | Um_nik | 142 |
| 7 | Errichto | 139 |
| 8 | adamant | 136 |
| 9 | BledDest | 135 |
| 10 | AksLolCoding | 132 |
|
+25
I have different results for a different problem. C++ 20 (64) submission: https://codeforces.me/contest/1328/submission/132103253 C++ 17 (64) submission: https://codeforces.me/contest/1328/submission/132103360 C++ 17 submission: https://codeforces.me/contest/1328/submission/132103444 |
|
0
Please share if you have a better solution than O(N^2). |
|
+5
Thank You!!! |
|
0
how to use these? |
|
0
It looks like this https://imgur.com/K0xXT6z |
|
+3
CSES problem set :) |
|
0
That's JETT REBIBE ME!!! |
|
+16
DR you do understand that this was a contest for fun right? |
|
+1
Yes apologies. I was wrong . It solved the problem. Thnak you!!! :) |
|
0
but before that i am assigning a value to ma when i=0. So there is no undefined behavior. If you still have doubt copy my code, run on your system for the first test case . |
|
0
No i checked it is fine. |
|
0
what do you mean? |
|
0
I also have a question can someone explain me. The question says that n is between 3 and 1000000000 and also says that there is definitely an answer possible. But you can see that there are no answers for n = 4 or 8 and so on? What am i missing here? |
| Name |
|---|


