結果

問題 No.2050 Speed
ユーザー taisuketaisuke
提出日時 2022-10-15 15:08:25
言語 Rust
(1.77.0)
結果
WA  
実行時間 -
コード長 437 bytes
コンパイル時間 845 ms
コンパイル使用メモリ 135,592 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-09 02:39:28
合計ジャッジ時間 1,858 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 WA -
testcase_02 AC 1 ms
4,380 KB
testcase_03 WA -
testcase_04 AC 1 ms
4,380 KB
testcase_05 WA -
testcase_06 AC 1 ms
4,376 KB
testcase_07 WA -
testcase_08 AC 1 ms
4,380 KB
testcase_09 WA -
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unnecessary parentheses around `if` condition
  --> Main.rs:10:8
   |
10 |     if (a < b) {
   |        ^     ^
   |
   = note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
   |
10 -     if (a < b) {
10 +     if a < b {
   |

warning: unnecessary parentheses around `if` condition
  --> Main.rs:12:15
   |
12 |     } else if (b < a) {
   |               ^     ^
   |
help: remove these parentheses
   |
12 -     } else if (b < a) {
12 +     } else if b < a {
   |

warning: 2 warnings emitted

ソースコード

diff #

fn main() {
    // println!("Hello, world!");

    let mut input = String::new();
    std::io::stdin().read_line(&mut input).unwrap();
    let mut iter = input.split_whitespace();
    let a: i32 = iter.next().unwrap().parse().unwrap();
    let b: i32 = iter.next().unwrap().parse().unwrap();

    if (a < b) {
        println!("blackyuki");
    } else if (b < a) {
        println!("KoD");
    } else {
        println!("same");
    }
}
0