結果

問題 No.1656 Recuperation
コンテスト
ユーザー elphe
提出日時 2026-01-11 12:49:17
言語 Rust
(1.92.0 + proconio + num)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 455 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 26,528 ms
コンパイル使用メモリ 416,476 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2026-01-11 12:49:45
合計ジャッジ時間 26,862 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use proconio::{fastout, input};

#[fastout]
fn main() {
    input! {
        testcases: [(u16, u16)],
    }

    println!("{}", output(solve(testcases)));
}

fn solve(testcases: Vec<(u16, u16)>) -> Vec<u32> {
    testcases
        .into_iter()
        .map(|(a, b)| (a + 1) as u32 * b as u32)
        .collect()
}

fn output(ans: Vec<u32>) -> String {
    ans.into_iter()
        .map(|x| x.to_string())
        .collect::<Vec<_>>()
        .join("\n")
}
0