結果

問題 No.2706 One Nafmo
ユーザー marble72marble72
提出日時 2024-03-31 13:52:55
言語 Rust
(1.77.0)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 1,410 ms
コンパイル使用メモリ 174,088 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-03-31 13:52:58
合計ジャッジ時間 1,750 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
6,676 KB
testcase_06 AC 1 ms
6,676 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let s = getline();
    let al:Vec<_>=s.trim().split(' ').collect();
    let a:i32 = al[0].parse().unwrap();
    let b:i32 = al[0].parse().unwrap();
    let x:i32 = al[0].parse().unwrap();
    let ans = if x%a == 0 {
        x/a
    }else{
        (x/a)+1
    };
    println!("{}",ans*b);
}

fn getline() -> String {
    let mut _ret = String::new();
    std::io::stdin().read_line(&mut _ret).ok();
    return _ret;
}
0