Submission #45053191


Source Code Expand

use proconio::{input, marker::Chars};

fn main() {
    input! {
        a: usize,
        b: Chars,
    };
    let b100 = b
        .iter()
        .copied()
        .filter(|b_i| b_i != &'.')
        .collect::<String>()
        .parse::<usize>()
        .unwrap();
    let ans = a * b100 / 100;
    println!("{}", ans);
}

Submission Info

Submission Time
Task C - Multiplication 3
User bouzuya
Language Rust (1.42.0)
Score 300
Code Size 324 Byte
Status AC
Exec Time 7 ms
Memory 2144 KiB

Judge Result

Set Name Sample All after_contest
Score / Max Score 0 / 0 300 / 300 0 / 0
Status
AC × 3
AC × 20
AC × 2
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, hand_01.txt, hand_02.txt, hand_03.txt, random_01.txt, random_02.txt, random_03.txt, random_11.txt, random_12.txt, random_13.txt, random_21.txt, random_22.txt, random_23.txt, random_31.txt, random_32.txt, random_33.txt, zero_01.txt, zero_02.txt
after_contest after_contest_01.txt, after_contest_02.txt
Case Name Status Exec Time Memory
after_contest_01.txt AC 7 ms 2128 KiB
after_contest_02.txt AC 2 ms 2012 KiB
hand_01.txt AC 2 ms 2036 KiB
hand_02.txt AC 2 ms 1892 KiB
hand_03.txt AC 2 ms 2076 KiB
random_01.txt AC 3 ms 2028 KiB
random_02.txt AC 2 ms 2080 KiB
random_03.txt AC 2 ms 2040 KiB
random_11.txt AC 1 ms 2024 KiB
random_12.txt AC 3 ms 2084 KiB
random_13.txt AC 2 ms 2144 KiB
random_21.txt AC 2 ms 2000 KiB
random_22.txt AC 2 ms 2088 KiB
random_23.txt AC 2 ms 2104 KiB
random_31.txt AC 2 ms 1968 KiB
random_32.txt AC 1 ms 2060 KiB
random_33.txt AC 1 ms 1964 KiB
sample_01.txt AC 1 ms 2084 KiB
sample_02.txt AC 2 ms 2100 KiB
sample_03.txt AC 2 ms 2056 KiB
zero_01.txt AC 1 ms 2068 KiB
zero_02.txt AC 2 ms 2072 KiB