結果

問題 No.3064 Speedrun (Easy)
ユーザー atcoder8
提出日時 2025-03-21 21:23:37
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 11,853 ms
コンパイル使用メモリ 401,028 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-21 21:23:50
合計ジャッジ時間 12,636 ms
ジャッジサーバーID
(参考情報)
judge4 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
    input! {
        num_problems: [usize; 4],
        weights: [usize; 4],
        t: usize,
    }

    let sum_times = num_problems
        .iter()
        .zip(&weights)
        .map(|(num, weight)| num * weight)
        .sum::<usize>();
    println!("{}", if sum_times <= t { "Yes" } else { "No" });
}
0