TopCoder SRM627