Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 51s1 days 16 hours 1 minutes 51 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 01m 51s1 days 16 hours 1 minutes 51 seconds.

Sign in to watch this lesson
Algorithms - Foundations · 4:55
C++ the way contest programmers use it: fast input and output, integer types and the overflow that bites everyone once. We run CSES Weird Algorithm from 113383 in an int and watch it wrap past INT_MAX into a loop of negative numbers, catch 10^5 * 10^5 going wrong, see the optimiser delete an overflow check, and find where a double's 53 bits stop being enough, all measured on a Mac.