Last active
December 9, 2024 12:45
-
-
Save hucancode/7a3cb3b200bd86a05ebe227b712846e1 to your computer and use it in GitHub Desktop.
This file contains 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::io; | |
macro_rules! read { | |
($($t:ty),*) => {{ | |
let mut input = String::new(); | |
io::stdin().read_line(&mut input).unwrap(); | |
let mut iter = input.split_whitespace(); | |
($( | |
iter.next().unwrap().parse::<$t>().unwrap() | |
),*) | |
}}; | |
} | |
macro_rules! read_array { | |
($t:ty, $n:expr) => {{ | |
let mut input = String::new(); | |
io::stdin().read_line(&mut input).unwrap(); | |
let iter = input.split_whitespace(); | |
iter.take($n) | |
.map(|item| item.parse::<$t>().unwrap()) | |
.collect::<Vec<$t>>() | |
}}; | |
} | |
fn solve(hurdles: Vec<(usize, usize)>, bonus: Vec<(usize, usize)>, dest: usize) -> i32 { | |
return -1; | |
} | |
fn main() { | |
let t = read!(i32); | |
for _ in 0..t { | |
let (n, m, l) = read!(usize, usize, usize); | |
let mut hurdles = Vec::new(); | |
for _ in 0..n { | |
let (l, r) = read!(usize, usize); | |
hurdles.push((l, r)); | |
} | |
let mut bonus = Vec::new(); | |
for _ in 0..m { | |
let (x, v) = read!(usize, usize); | |
bonus.push((x, v)); | |
} | |
println!("{}", solve(hurdles, bonus, l)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment