結果

問題 No.264 じゃんけん
ユーザー tonyu0
提出日時 2020-04-29 01:59:26
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 475 bytes
コンパイル時間 16,083 ms
コンパイル使用メモリ 399,784 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-26 09:56:46
合計ジャッジ時間 11,814 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::*;

fn main() {
    let mut s: String = String::new();
    std::io::stdin().read_to_string(&mut s).ok();
    let mut itr = s.trim().split_whitespace();
    let p: (u32, u32) = (
        itr.next().unwrap().parse().unwrap(),
        itr.next().unwrap().parse().unwrap(),
    );

    println!(
        "{}",
        match p {
            (0, 0) | (1, 1) | (2, 2) => "Drew",
            (0, 1) | (1, 2) | (2, 0) => "Won",
            _ => "Lost",
        }
    )
}
0