結果

問題 No.2049 POP
ユーザー titia
提出日時 2022-08-23 04:47:17
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 436 bytes
コンパイル時間 12,977 ms
コンパイル使用メモリ 394,952 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-10 10:50:05
合計ジャッジ時間 12,768 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let n: usize = {
        let mut line: String = String::new();
        std::io::stdin().read_line(&mut line).unwrap();
        line.trim().parse().unwrap()
    };

    let mut s: Vec<char> = {
        let mut line: String = String::new();
        std::io::stdin().read_line(&mut line).unwrap();
        line.trim().chars().collect()
    };

    s=s[1..n-1].to_vec();

    println!("{}", s.iter().collect::<String>());
}
0