結果
問題 |
No.8069 Torn Documents
|
ユーザー |
![]() |
提出日時 | 2020-04-01 22:46:17 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 12,090 ms |
コンパイル使用メモリ | 382,084 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-21 21:39:16 |
合計ジャッジ時間 | 15,757 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 21 |
コンパイルメッセージ
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(); }