chore(rs): refactor the ‹main›

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-07-29 23:18:21 +02:00
parent 44aa0b6d6d
commit d7af3b2543
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -27,14 +27,10 @@ const SINGLE_TEST: bool = false;
fn main() { fn main() {
let mut s = Scanner::new(); let mut s = Scanner::new();
if SINGLE_TEST { let n: usize = if SINGLE_TEST { 1 } else { s.next() };
solve(&mut s)
} else {
let n = s.next::<usize>();
for _ in 0..n { for _ in 0..n {
solve(&mut s) solve(&mut s)
} }
}
} }
// endregion runner // endregion runner