// -*- coding:utf-8-unix -*- use std::sync::OnceLock; // use once_cell::sync::OnceCell; use proconio::marker::{Bytes, Usize1}; use proconio::{fastout, input}; const N: usize = 50; #[fastout] fn main() { let _ = get_time(); input! { n: usize, } assert_eq!(n, N); let mut a = Vec::new(); for i in 0..N { input! { ai: [usize; i+1], } a.push(ai); } let mut c = vec![0; N]; for i in 0..N { if i > 0 { print!(" "); } print!("{}", c[i]); } } // // MARK: Time Measurement // static STIME: OnceLock = OnceLock::new(); fn get_time() -> f64 { let t = std::time::SystemTime::now() .duration_since(std::time::UNIX_EPOCH) .unwrap(); let ms = t.as_secs() as f64 + t.subsec_nanos() as f64 * 1e-9; let stime = *STIME.get_or_init(|| ms); return ms - stime; } #[allow(unused)] #[cfg(debug_assertions)] const TIME_LIMIT: f64 = 10.; #[allow(unused)] #[cfg(not(debug_assertions))] const TIME_LIMIT: f64 = 2.9;