結果
| 問題 | 
                            No.2049 POP
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ixTL255
                         | 
                    
| 提出日時 | 2022-12-27 23:49:58 | 
| 言語 | Rust  (1.83.0 + proconio)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 231 bytes | 
| コンパイル時間 | 13,570 ms | 
| コンパイル使用メモリ | 377,456 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-22 11:13:36 | 
| 合計ジャッジ時間 | 13,795 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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)]` 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