Submission #15462429


Source Code Expand

Copy
use proconio::input;

fn main() {
    input! {
        a: i64,
        mut b: i64,
        mut c: i64,
        k: i64,
    };

    let mut m = 0;
    while a >= b {
        b *= 2;
        m += 1;
    }
    while b >= c {
        c *= 2;
        m += 1;
    }
    let ans = m <= k;
    println!("{}", if ans { "Yes" } else { "No" });
}

Submission Info

Submission Time
Task B - Magic 2
User bouzuya
Language Rust (1.42.0)
Score 200
Code Size 336 Byte
Status
Exec Time 7 ms
Memory 2144 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 200 / 200 in01.txt, in02.txt, in03.txt, in04.txt, in05.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
in01.txt 7 ms 2144 KB
in02.txt 2 ms 2140 KB
in03.txt 5 ms 2052 KB
in04.txt 2 ms 2088 KB
in05.txt 1 ms 2032 KB
in06.txt 1 ms 2112 KB
in07.txt 2 ms 2036 KB
in08.txt 1 ms 1896 KB
in09.txt 2 ms 2076 KB
in10.txt 1 ms 2016 KB
in11.txt 1 ms 1900 KB
in12.txt 2 ms 2000 KB
in13.txt 1 ms 2032 KB
in14.txt 1 ms 2116 KB
sample_01.txt 3 ms 1996 KB
sample_02.txt 3 ms 2112 KB