結果

問題 No.1129 Rating じゃんけん
ユーザー かりあげクン
提出日時 2020-08-05 10:49:16
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 614 bytes
コンパイル時間 12,504 ms
コンパイル使用メモリ 378,240 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-16 03:20:44
合計ジャッジ時間 13,497 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#[warn(unused_assignments)]
fn main() {
    let mut abcd = String::new();
    std::io::stdin().read_line(&mut abcd).ok();
    let abcd: Vec<i32> = abcd.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
    let a = abcd[0];
    let b = abcd[1];
    let c = abcd[2];
    let d = abcd[3];
    let ans = if a != c {
        if a > c {
            "null"
        } else {
            "tRue"
        }
    } else if b != d{
        let e = b - d;
        if e == -1 || e == 2 {
            "null"
        } else {
            "tRue"
        }
    } else {
        "Draw"
    };
    println!("{}", ans);
}
0