URi online judge solution