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,15 +27,11 @@ const SINGLE_TEST: bool = false;
fn main() {
let mut s = Scanner::new();
if SINGLE_TEST {
solve(&mut s)
} else {
let n = s.next::<usize>();
let n: usize = if SINGLE_TEST { 1 } else { s.next() };
for _ in 0..n {
solve(&mut s)
}
}
}
// endregion runner
#[allow(dead_code)]