結果

問題 No.2050 Speed
ユーザー Fullmoon8507
提出日時 2022-09-19 13:00:24
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 555 bytes
コンパイル時間 16,252 ms
コンパイル使用メモリ 379,980 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-22 02:23:07
合計ジャッジ時間 16,720 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;

fn main() {
    // 標準入力
    let mut line = String::new();
    io::stdin().read_line(&mut line).expect("Fail.");

    // 分割
    let vec: Vec<&str> = line.split(" ").collect();
    let a_str = vec[0].trim();
    let b_str = vec[1].trim();
    let a_num: i32 = a_str.parse().unwrap();
    let b_num: i32 = b_str.parse().unwrap();

    let bb_num: i32 = b_num * 3600 / 1000;
    if a_num > bb_num {
        println!("KoD");
    } else if a_num < bb_num {
        println!("blackyuki");
    } else {
        println!("same");
    }
}
0