結果

問題 No.3069 Torn Documents
ユーザー akakimidoriakakimidori
提出日時 2020-04-01 22:46:17
言語 Rust
(1.77.0)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 1,998 ms
コンパイル使用メモリ 145,888 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-29 02:54:01
合計ジャッジ時間 6,393 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
4,380 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 1 ms
4,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 1 ms
4,380 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 1 ms
4,376 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 1 ms
4,384 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused import: `std::io::Write`
 --> Main.rs:2:5
  |
2 | use std::io::Write;
  |     ^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused variable: `out`
 --> 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`
  --> 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
 --> 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
  --> Main.rs:10:9
   |
10 |     let mut it = s.trim().split_whitespace();
   |         ----^^
   |         |
   |         help: remove this `mut`

warning: 5 warnings emitted

ソースコード

diff #

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();
}
0