結果

問題 No.1108 移調
ユーザー cra77756176
提出日時 2022-12-16 23:58:36
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 374 bytes
コンパイル時間 12,605 ms
コンパイル使用メモリ 396,664 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-16 06:08:46
合計ジャッジ時間 12,990 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut xx = String::new();
    std::io::Read::read_to_string(&mut std::io::stdin(), &mut xx).ok();
    let xx: Vec<i64> = xx.split_whitespace().flat_map(str::parse).collect();

    println!(
        "{}",
        xx[2..]
            .iter()
            .map(|n| (n + xx[1]).to_string())
            .collect::<Vec<String>>()
            .join(" ")
    );
}
0