結果

問題 No.1656 Recuperation
コンテスト
ユーザー cra77756176
提出日時 2022-12-24 19:55:57
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 755µs
コード長 375 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 636 ms
コンパイル使用メモリ 193,360 KB
実行使用メモリ 9,860 KB
最終ジャッジ日時 2026-09-25 16:29:40
合計ジャッジ時間 2,067 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

    let answer = xx
        .chunks(2)
        .map(|x| ((x[0] + 1) * x[1]).to_string())
        .collect::<Vec<String>>()
        .join("\n");

    println!("{answer}");
}
0