aboutsummaryrefslogtreecommitdiff
path: root/codeforces/HalloumiBoxes/main.rs
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2024-03-14 00:22:45 +0200
committeromagdy7 <omar.professional8777@gmail.com>2024-03-14 00:22:45 +0200
commitc1bbcb6c2a6d02a4ac06d3c41afcfc51993ec1d3 (patch)
tree700922a1e401310ad4eb164af19d425144517179 /codeforces/HalloumiBoxes/main.rs
parent1ccba7112b334c0887bd349966219b38eb9ccfb9 (diff)
downloadcompetitive-programming-c1bbcb6c2a6d02a4ac06d3c41afcfc51993ec1d3.tar.xz
competitive-programming-c1bbcb6c2a6d02a4ac06d3c41afcfc51993ec1d3.zip
Solved 3 problems in the last Div3
Diffstat (limited to 'codeforces/HalloumiBoxes/main.rs')
-rw-r--r--codeforces/HalloumiBoxes/main.rs32
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;
+ }
+}