結果

問題 No.1656 Recuperation
ユーザー phspls
提出日時 2022-10-23 04:31:59
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 520 bytes
コンパイル時間 12,798 ms
コンパイル使用メモリ 378,076 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 01:14:04
合計ジャッジ時間 13,402 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut t = String::new();
    std::io::stdin().read_line(&mut t).ok();
    let t: usize = t.trim().parse().unwrap();
    let queries = (0..t).map(|_| {
            let mut temp = String::new();
            std::io::stdin().read_line(&mut temp).ok();
            let temp: Vec<usize> = temp.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
            (temp[0], temp[1])
        })
        .collect::<Vec<_>>();

    for &(a, b) in queries.iter() {
        println!("{}", a*b+b);
    }
}
0