結果
| 問題 |
No.9001 標準入出力の練習問題(テスト用)
|
| ユーザー |
🇳🇱🦭🇯🇵
|
| 提出日時 | 2024-09-04 08:38:11 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 444 bytes |
| コンパイル時間 | 13,059 ms |
| コンパイル使用メモリ | 402,208 KB |
| 実行使用メモリ | 6,812 KB |
| 最終ジャッジ日時 | 2024-09-04 08:38:26 |
| 合計ジャッジ時間 | 14,061 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 |
コンパイルメッセージ
warning: unused `Result` that must be used
--> src/main.rs:14:5
|
14 | writeln!(stdout, "{} {}", a + b, s);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
= note: `#[warn(unused_must_use)]` on by default
= note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info)
ソースコード
use std::io;
use std::io::prelude::*;
fn main() {
let stdin = io::read_to_string(io::stdin()).unwrap();
let mut stdin = stdin.split_whitespace();
let stdout = io::stdout();
let mut stdout = io::BufWriter::new(stdout.lock());
let a = stdin.next().unwrap().parse::<usize>().unwrap();
let b = stdin.next().unwrap().parse::<usize>().unwrap();
let s = stdin.next().unwrap();
writeln!(stdout, "{} {}", a + b, s);
}
🇳🇱🦭🇯🇵