• + 0 comments

    clean Rust:

    fn save_the_prisoner(n: i32, m: i32, s: i32) -> i32 {
       (s - 2 + m) % n + 1
    }