Submission #49286596


Source Code Expand

use proconio::input;

fn main() {
    input! {
      n: usize,
    };

    let mut res = n;
    let mut count = 0;
    while res != 0 {
        if res % 2 == 0 {
            count += 1;
            res /= 2;
        } else {
            break;
        }
    }
    println!("{}", count);

}

Submission Info

Submission Time
Task B - CTZ
User alixfachin
Language Rust (rustc 1.70.0)
Score 200
Code Size 290 Byte
Status AC
Exec Time 1 ms
Memory 2076 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 20
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt
Case Name Status Exec Time Memory
example_00.txt AC 0 ms 1940 KiB
example_01.txt AC 1 ms 1864 KiB
example_02.txt AC 1 ms 2076 KiB
hand_00.txt AC 1 ms 1924 KiB
hand_01.txt AC 0 ms 1920 KiB
hand_02.txt AC 1 ms 1956 KiB
hand_03.txt AC 0 ms 1924 KiB
hand_04.txt AC 0 ms 1860 KiB
hand_05.txt AC 0 ms 2076 KiB
hand_06.txt AC 0 ms 1912 KiB
random_00.txt AC 1 ms 1900 KiB
random_01.txt AC 0 ms 1928 KiB
random_02.txt AC 1 ms 1964 KiB
random_03.txt AC 0 ms 1896 KiB
random_04.txt AC 0 ms 1908 KiB
random_05.txt AC 0 ms 2004 KiB
random_06.txt AC 0 ms 1864 KiB
random_07.txt AC 1 ms 1924 KiB
random_08.txt AC 0 ms 2000 KiB
random_09.txt AC 1 ms 1732 KiB