結果
| 問題 |
No.8060 サンプルケース至上主義
|
| コンテスト | |
| ユーザー |
akakimidori
|
| 提出日時 | 2020-04-01 21:25:19 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 348 bytes |
| コンパイル時間 | 13,358 ms |
| コンパイル使用メモリ | 376,932 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 08:04:57 |
| 合計ジャッジ時間 | 13,070 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 5 |
コンパイルメッセージ
warning: unused import: `std::io::Write` --> src/main.rs:2:5 | 2 | use std::io::Write; | ^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused variable: `out` --> src/main.rs:6:13 | 6 | let mut out = std::io::BufWriter::new(out.lock()); | ^^^ help: if this is intentional, prefix it with an underscore: `_out` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `it` --> src/main.rs:10:13 | 10 | let mut it = s.trim().split_whitespace(); | ^^ help: if this is intentional, prefix it with an underscore: `_it` warning: variable does not need to be mutable --> src/main.rs:6:9 | 6 | let mut out = std::io::BufWriter::new(out.lock()); | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default warning: variable does not need to be mutable --> src/main.rs:10:9 | 10 | let mut it = s.trim().split_whitespace(); | ----^^ | | | help: remove this `mut`
ソースコード
use std::io::Read;
use std::io::Write;
fn run() {
let out = std::io::stdout();
let mut out = std::io::BufWriter::new(out.lock());
let mut s = String::new();
std::io::stdin().read_to_string(&mut s).unwrap();
// std::io::stdin().read_line(&mut s).unwrap();
let mut it = s.trim().split_whitespace();
}
fn main() {
run();
}
akakimidori