#![allow(non_snake_case)] #![allow(unused_imports)] #![allow(unused_macros)] #![allow(clippy::needless_range_loop)] #![allow(clippy::comparison_chain)] #![allow(clippy::nonminimal_bool)] #![allow(clippy::neg_multiply)] #![allow(dead_code)] // use itertools::Itertools; use std::cmp::Reverse; use std::collections::{BTreeMap, BTreeSet, BinaryHeap, VecDeque}; // use superslice::Ext; // use bitset_fixed::BitSet; use proconio::{ fastout, input, marker::{Chars, Usize1}, }; #[derive(Default)] struct Solver {} impl Solver { #[fastout] fn solve(&mut self) { input! { N: usize, M: usize, X: usize, UVCT: [(Usize1, Usize1, usize, usize); M] } } } fn main() { std::thread::Builder::new() .stack_size(128 * 1024 * 1024) .spawn(|| Solver::default().solve()) .unwrap() .join() .unwrap(); }