#![allow(non_snake_case, unused_imports)] use proconio::{input, marker::Usize1, marker::Chars}; use itertools::Itertools; #[allow(unused_macros)] macro_rules! d { ( $( $x:expr ),* $(,)? ) => { eprintln!( concat!( $( stringify!($x), "={:?} " ),* ), $( $x ),* ); }; } fn main() { input! { N: usize, M: usize, } for _ in 0..M { input! { A: usize, B: usize, } println!("{}", if A < B { 0 } else { 1 }); } }