結果

問題 No.9000 Hello World! (テスト用)
ユーザー alpha_virginis
提出日時 2016-12-29 02:59:47
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 207 bytes
コンパイル時間 15,628 ms
コンパイル使用メモリ 380,376 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-25 12:06:11
合計ジャッジ時間 11,805 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused variable: `str`
 --> src/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

ソースコード

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