結果
問題 | No.1129 Rating じゃんけん |
ユーザー |
|
提出日時 | 2020-07-28 17:37:46 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 530 bytes |
コンパイル時間 | 22,054 ms |
コンパイル使用メモリ | 383,192 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-28 20:51:27 |
合計ジャッジ時間 | 11,620 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
fn main() { let mut abcd = String::new(); std::io::stdin().read_line(&mut abcd).ok(); let abcd: Vec<usize> = 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]; if a != c { println!("{}", if a > c { "null" } else { "tRue" }); } else { if b ==d { println!("Draw"); } else { println!("{}", if (3 - b + d) % 3 == 1 { "null" } else { "tRue" }); } } }