提出 #45053191


ソースコード 拡げる

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);
}

提出情報

提出日時
問題 C - Multiplication 3
ユーザ bouzuya
言語 Rust (1.42.0)
得点 300
コード長 324 Byte
結果 AC
実行時間 7 ms
メモリ 2144 KiB

ジャッジ結果

セット名 Sample All after_contest
得点 / 配点 0 / 0 300 / 300 0 / 0
結果
AC × 3
AC × 20
AC × 2
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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