solutions: 791A

This commit is contained in:
Muhammad Nauman Raza 2025-01-20 22:21:29 +00:00
parent e065988632
commit d5331cdee9
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -0,0 +1,19 @@
use std::io;
fn main() {
let mut s = String::new();
io::stdin().read_line(&mut s).unwrap();
let a = s.trim().split_whitespace().map(|s| s.parse::<u64>().unwrap()).collect::<Vec<u64>>();
let mut l = a[0];
let mut b = a[1];
let mut y = 0;
while l <= b {
y += 1;
b *= 2;
l *= 3;
}
println!("{}", y);
}