Correct SRM 643, Div 2 500

- also modify C++ template for Vimcoder: MSG() only in debug mode