mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-12-22 07:01:21 +01:00
chore(rs): refactor the ‹main›
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
44aa0b6d6d
commit
d7af3b2543
1 changed files with 2 additions and 6 deletions
|
@ -27,13 +27,9 @@ 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() };
|
||||||
|
for _ in 0..n {
|
||||||
solve(&mut s)
|
solve(&mut s)
|
||||||
} else {
|
|
||||||
let n = s.next::<usize>();
|
|
||||||
for _ in 0..n {
|
|
||||||
solve(&mut s)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// endregion runner
|
// endregion runner
|
||||||
|
|
Loading…
Reference in a new issue