diff options
Diffstat (limited to 'codeforces/HalloumiBoxes/main.rs')
| -rw-r--r-- | codeforces/HalloumiBoxes/main.rs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/codeforces/HalloumiBoxes/main.rs b/codeforces/HalloumiBoxes/main.rs new file mode 100644 index 0000000..cbc73cd --- /dev/null +++ b/codeforces/HalloumiBoxes/main.rs @@ -0,0 +1,32 @@ +#[allow(dead_code)] +fn read<T: std::str::FromStr>() -> T { + let mut s = String::new(); + std::io::stdin().read_line(&mut s).ok(); + s.trim().parse().ok().unwrap() +} + +#[allow(dead_code)] +fn read_vec<T: std::str::FromStr>() -> Vec<T> { + read::<String>() + .split_whitespace() + .map(|e| e.parse().ok().unwrap()) + .collect() +} + +#[allow(dead_code)] +fn read_mat<T: std::str::FromStr>(n: u32) -> Vec<Vec<T>> { + (0..n).map(|_| read_vec()).collect() +} + +fn solve() { + let (k, n) = (read::<usize>(), read::<usize>()); + let mut v = read_vec::<usize>(); +} + +fn main() { + let mut tt = read::<u64>(); + while tt > 0 { + solve(); + tt -= 1; + } +} |
