Comments

What is the best way of solving F? I'm thinking segment trees for some weird reason.

Each and every contest, I hope of learning new ideas of problem solving, though I feel bad when I end up solving nothing in the contest; hoping today that changes I think it's going to be exciting

All the best everyone, and thank you codeforces

New contest, new opportunities to learn and possibly get better. Thank you CodeForces

+6

Hoping to learn something new regardless of a rating change. Good luck to all, and a big thank you to the contest setters for making CodeForces awesome

On HosseinYousefiC++ Tricks, 9 years ago
0

Which one's aren't needing C++14? Thank you.

On HosseinYousefiC++ Tricks, 9 years ago
0

Because of onsite contest limitations.

On HosseinYousefiC++ Tricks, 9 years ago
0

Thanks for the great tips; but are all of them usable without C++14?

Thanks for reminding me to think twice. Congrats on the rating change.

Congrats, I guess I'll lose a few due to that cheap mistake

I regret being unable to give the contest, there's one tomorrow also right? Will give both tomorrow, one virtual one real. OK, have one now. Congrats to the winners! This has been a great Christmas Contest season.

Do we need to flush cin?

On LewinCodeforces Round #385, 9 years ago
-6

Do we need to flush cin? Like not using cin.tie(NULL);

Is there a way to filter problems by algorithms on CodeForces? If not could somebody please give a list of Graph problems on each of these?

What'd happen if I'm unable to participate in a contest after registration?

Thank You, got it. Could you suggest a few tutorials for Graphs?

Yes. But first we need to reach the nearest airport of the same company which is at a minimum distance to that of the other company; this minimum distance is the cost. But if only the company numbers 1s and 0s are XORed you'd always get either a one or a zero. But for that to be true, the cost must always be either 0 or 1.

In that case I think it's possibly because 1. You never need more than two moves 2. The free ticket thing (which is I guess the bigger reason for this being true), am I right?

But my naive solution from the contest used three times less memory than the XOR based approach, I don't know why.

Could you explain why the bitwise XOR works in problem A? I used a different logic though.

On andreyvYet again on C++ input/output, 10 years ago
+1

Is ios::sync_with_stdio(0); the same as ios_base::sync_with_stdio(0)?