19 lines
475 B
Rust
19 lines
475 B
Rust
use std::io;
|
|
|
|
fn main(){
|
|
let mut inputs = String::new();
|
|
io::stdin().read_line(&mut inputs)
|
|
.expect("Failed to read line");
|
|
let inputs : Vec<f64> = inputs.trim().split(" ")
|
|
.map(|x| x.parse::<f64>().expect("Not an Integer"))
|
|
.collect::<Vec<f64>>();
|
|
|
|
let (a, b, c) = (inputs[0], inputs[1], inputs[2]);
|
|
if b >= c{
|
|
println!("-1");
|
|
return;
|
|
}
|
|
let x = ((a / (c - b)).floor() as u32) + 1;
|
|
println!("{}", x);
|
|
}
|