結果

問題 No.9000 Hello World! (テスト用)
ユーザー alpha_virginisalpha_virginis
提出日時 2016-12-29 02:59:47
言語 Rust
(1.77.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 207 bytes
コンパイル時間 522 ms
コンパイル使用メモリ 115,424 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-26 14:34:04
合計ジャッジ時間 1,112 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused variable: `str`
 --> Main.rs:4:9
  |
4 |     let str = match std::io::stdin().read_line(&mut str) {
  |         ^^^ help: if this is intentional, prefix it with an underscore: `_str`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

ソースコード

diff #

fn main() {
    let mut str = String::new();
    let str = match std::io::stdin().read_line(&mut str) {
        Ok(ss) => ss,
        Err(_) => std::process::exit(1),
    };
    println!("Hello World!");
}
0