Created
November 16, 2024 14:27
-
-
Save alepez/6e422d83ae26599be03f0ed8a05d546f to your computer and use it in GitHub Desktop.
coding-gym-ice-cream-parlor-boilerplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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