diff --git a/.common/rust/src/main.rs b/.common/rust/src/main.rs index 2b2cb86..48c7902 100644 --- a/.common/rust/src/main.rs +++ b/.common/rust/src/main.rs @@ -27,13 +27,9 @@ const SINGLE_TEST: bool = false; fn main() { let mut s = Scanner::new(); - if SINGLE_TEST { + let n: usize = if SINGLE_TEST { 1 } else { s.next() }; + for _ in 0..n { solve(&mut s) - } else { - let n = s.next::(); - for _ in 0..n { - solve(&mut s) - } } } // endregion runner