C++ Playground - Canvas Ball - Collisions in One Dimension: Online Interpreter, Compiler & Editor | Sololearn