Skip to content

Instantly share code, notes, and snippets.

@alepez
Created November 16, 2024 14:27
Show Gist options
  • Save alepez/6e422d83ae26599be03f0ed8a05d546f to your computer and use it in GitHub Desktop.
Save alepez/6e422d83ae26599be03f0ed8a05d546f to your computer and use it in GitHub Desktop.
coding-gym-ice-cream-parlor-boilerplate
use std::{
cmp::{max, min, Ordering},
io::BufRead as _,
};
fn solve(m: usize, flavors: Vec<usize>) -> (usize, usize) {
(1, 1)
}
fn main() {
let stdin = std::io::stdin();
let mut lines = stdin.lock().lines();
let t = lines.next().unwrap().unwrap().parse::<usize>().unwrap();
for _ in 0..t {
let m = lines.next().unwrap().unwrap().parse::<usize>().unwrap();
let _n = lines.next();
let flavors: Vec<usize> = lines
.next()
.unwrap()
.unwrap()
.split(' ')
.map(|s| s.parse::<usize>().unwrap())
.collect();
let (alice, bob) = solve(m, flavors);
println!("{} {}", alice, bob);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment