結果
| 問題 | 
                            No.1129 Rating じゃんけん
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-01-10 06:59:21 | 
| 言語 | Rust  (1.83.0 + proconio)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 956 bytes | 
| コンパイル時間 | 12,460 ms | 
| コンパイル使用メモリ | 405,772 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-14 10:42:52 | 
| 合計ジャッジ時間 | 12,548 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 16 | 
ソースコード
#[macro_export]
macro_rules! setup {
    { mut $input:ident: SplitWhitespace $(,)? } => {
        use std::io::Read;
        let mut buf = String::new();
        std::io::stdin().read_to_string(&mut buf).unwrap();
        let mut $input = buf.split_whitespace();
    };
}
#[macro_export]
macro_rules! parse_next {
    ($str_iter:expr) => {
        $str_iter.next().unwrap().parse().unwrap()
    };
}
fn main() {
    setup! { mut input: SplitWhitespace };
    let a: usize = parse_next!(input);
    let b: usize = parse_next!(input);
    let c: usize = parse_next!(input);
    let d: usize = parse_next!(input);
    if a != c {
        let ans = match a > c {
            true => "null",
            false => "tRue",
        };
        println!("{}", ans);
        return;
    }
    let ans = match (b, d) {
        (0, 1) | (1, 2) | (2, 0) => "null",
        (0, 2) | (1, 0) | (2, 1) => "tRue",
        _ => "Draw",
    };
    println!("{}", ans);
}