Create SRM 583 Div 2 550 p.cpp

My solution for the 550 points problem in SRM 583, Div 2.