結果
| 問題 | No.2049 POP | 
| コンテスト | |
| ユーザー |  naut3 | 
| 提出日時 | 2024-11-11 00:35:14 | 
| 言語 | Rust (1.83.0 + proconio) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 950 bytes | 
| コンパイル時間 | 22,950 ms | 
| コンパイル使用メモリ | 395,124 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-11 00:35:38 | 
| 合計ジャッジ時間 | 21,265 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 10 | 
ソースコード
#![allow(non_snake_case, unused_must_use, unused_imports)]
use std::io::{self, prelude::*};
fn main() {
    let (stdin, stdout) = (io::read_to_string(io::stdin()).unwrap(), io::stdout());
    let (mut stdin, mut buffer) = (stdin.split_whitespace(), io::BufWriter::new(stdout.lock()));
    macro_rules! input {
        ($t: tt, $n: expr) => {
            (0..$n).map(|_| input!($t)).collect::<Vec<_>>()
        };
        (Chars) => {
            input! {String}.chars().collect::<Vec<_>>()
        };
        (Usize1) => {
            stdin.next().unwrap().parse::<usize>().unwrap() - 1
        };
        ($t: ty) => {
            stdin.next().unwrap().parse::<$t>().unwrap()
        };
    }
    let _ = input!(u32);
    let mut S = input!(Chars);
    S.remove(0);
    S.pop();
    writeln!(
        buffer,
        "{}",
        S.into_iter()
            .map(|x| x.to_string())
            .collect::<Vec<_>>()
            .join("")
    );
}
            
            
            
        