use proconio::input_interactive; fn main() { input_interactive! { N: usize, } // if N == 2 { // for i in 1 ..= 10 { // println!("? {i}"); // input_interactive!(_: usize); // println!("Yes 1 2"); // return; // } // } let mut l = 1; let mut r = N; for _ in 1 ..= 10 { let mid = (l + r + 1) / 2; println!("? {}", mid); input_interactive!(count: usize); if count >= mid { l = mid; } else { r = mid; } } println!("Yes {l} {r}"); }