結果

問題 No.9000 Hello World! (テスト用)
ユーザー HgHg
提出日時 2023-04-30 21:11:51
言語 Rust
(1.77.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 195 bytes
コンパイル時間 15,087 ms
コンパイル使用メモリ 379,392 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-30 00:49:29
合計ジャッジ時間 15,972 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 0 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused variable: `s`
 --> src/main.rs:9:9
  |
9 |     let s = getline();
  |         ^ help: if this is intentional, prefix it with an underscore: `_s`
  |
  = note: `#[warn(unused_variables)]` on by default

ソースコード

diff #

fn getline() -> String {
    let mut _ret = String::new();
    std::io::stdin().read_line(&mut _ret).ok();
    return _ret;
}


fn main() {
    let s = getline();
    println!("Hello World!");
}
0