Comments
On MikeMirzayanov → C++20 Is Released, 5 years ago
+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

Please share if you have a better solution than O(N^2).

Thank You!!!

how to use these?

It looks like this https://imgur.com/K0xXT6z

CSES problem set :)

On shishyando → Codeforces Round #671, 6 years ago
0

That's JETT REBIBE ME!!!

DR you do understand that this was a contest for fun right?

Yes apologies. I was wrong . It solved the problem. Thnak you!!! :)

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 .

No i checked it is fine.

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?