146 c++ code works, accepted by the judge