aboutsummaryrefslogtreecommitdiff
path: root/2022/01/a.rs
diff options
context:
space:
mode:
Diffstat (limited to '2022/01/a.rs')
-rw-r--r--2022/01/a.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/2022/01/a.rs b/2022/01/a.rs
new file mode 100644
index 0000000..77e57e4
--- /dev/null
+++ b/2022/01/a.rs
@@ -0,0 +1,8 @@
1mod common;
2use common::*;
3
4fn main() {
5 let e = get_elves_from_stdin();
6 let m: i64 = e.iter().map(|a| a.iter().sum()).max().unwrap();
7 println!("{m}");
8}

Generated with cgit - Back to sebastiano.tronto.net