結果
| 問題 | No.2049 POP |
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2022-12-27 23:49:58 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 1,316 ms |
| コンパイル使用メモリ | 186,732 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-16 13:30:23 |
| 合計ジャッジ時間 | 2,425 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 10 |
コンパイルメッセージ
warning: unused return value of `core::str::<impl str>::trim` that must be used --> src/main.rs:9:2 | 9 | s.trim(); | ^^^^^^^^ | = note: this returns the trimmed string as a slice, without modifying the original = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default help: use `let _ = ...` to ignore the resulting value | 9 | let _ = s.trim(); | +++++++
ソースコード
use std::io;
fn main() {
let mut n: String = String::new();
let mut s: String = String::new();
io::stdin().read_line(&mut n).ok();
io::stdin().read_line(&mut s).ok();
s.trim();
s.remove(0);
s.pop();
println!("{}", s);
}
ixTL255