add solution for TopCoder SRM 601 D2 500; update system tests