結果
問題 | No.1129 Rating じゃんけん |
ユーザー |
|
提出日時 | 2020-07-28 17:35:44 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 530 bytes |
コンパイル時間 | 10,848 ms |
コンパイル使用メモリ | 402,232 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-28 20:50:12 |
合計ジャッジ時間 | 11,658 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 14 WA * 2 |
ソースコード
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 + c) % 3 == 1 { "null" } else { "tRue" }); } } }