結果

問題 No.169 何分かかるの!?
ユーザー nak3
提出日時 2017-11-03 17:59:58
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 531 bytes
コンパイル時間 13,007 ms
コンパイル使用メモリ 401,452 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-22 15:34:52
合計ジャッジ時間 13,241 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;
use std::str::FromStr;

fn main() {
    let stdin = io::stdin();
    let mut buf = String::new();
    stdin.read_line(&mut buf).ok();

    let mut it = buf.split_whitespace().map(|n| f64::from_str(n).unwrap());
    let a = it.next().unwrap();

    let mut buf = String::new();
    stdin.read_line(&mut buf).ok();

    let mut it = buf.split_whitespace().map(|n| f64::from_str(n).unwrap());
    let b = it.next().unwrap();

    let c = 100_f64 - a;

    let ans = ((b / c) * a) + b;
    print!("{}\n", ans.trunc());

}
0