use std::io::Read; fn run() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).unwrap(); let mut it = s.trim().split_whitespace(); let mut a: i64 = it.next().unwrap().parse().unwrap(); let mut b: i64 = it.next().unwrap().parse().unwrap(); let mut c: i64 = it.next().unwrap().parse().unwrap(); if a == 0 { if b == 0 { if c == 0 { println!("-1"); } else { println!("0"); } } else { let ans = -c as f64 / b as f64; println!("1\n{:.12}", ans); } return; } let d = b * b - 4 * a * c; if d < 0 { println!("0"); return; } if d == 0 { let ans = -b as f64 / (2 * a) as f64; println!("1\n{:.12}", ans); return; } if a < 0 { a *= -1; b *= -1; c *= -1; } let x = (-b as f64 - (d as f64).sqrt()) / (2 * a) as f64; let y = (2 * c) as f64 / (-b as f64 - (d as f64).sqrt()); println!("2\n{:.12}\n{:.12}", x, y); } fn main() { run(); }