Submission #39357305


Source Code Expand

use proconio::input;

fn main() {
    input! {
        h: usize,
        n: usize,
        a: [usize; n],
    };
    let ans = h <= a.into_iter().sum::<usize>();
    println!("{}", if ans { "Yes" } else { "No" });
}

Submission Info

Submission Time
Task B - Common Raccoon vs Monster
User bouzuya
Language Rust (1.42.0)
Score 200
Code Size 216 Byte
Status AC
Exec Time 12 ms
Memory 3136 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 4
AC × 23
Set Name Test Cases
Sample sample_01, sample_02, sample_03, sample_04
All hand_01, hand_02, max_01, max_02, max_03, random_01, random_02, random_03, random_04, random_05, random_06, random_07, random_08, random_09, random_10, random_11, random_12, random_13, random_14, sample_01, sample_02, sample_03, sample_04
Case Name Status Exec Time Memory
hand_01 AC 7 ms 2152 KiB
hand_02 AC 1 ms 1932 KiB
max_01 AC 7 ms 3136 KiB
max_02 AC 8 ms 3096 KiB
max_03 AC 7 ms 3040 KiB
random_01 AC 2 ms 2240 KiB
random_02 AC 4 ms 2688 KiB
random_03 AC 2 ms 2276 KiB
random_04 AC 8 ms 2988 KiB
random_05 AC 7 ms 2640 KiB
random_06 AC 12 ms 3040 KiB
random_07 AC 8 ms 2612 KiB
random_08 AC 2 ms 2120 KiB
random_09 AC 4 ms 2528 KiB
random_10 AC 3 ms 2336 KiB
random_11 AC 2 ms 2096 KiB
random_12 AC 2 ms 2112 KiB
random_13 AC 2 ms 2216 KiB
random_14 AC 4 ms 2608 KiB
sample_01 AC 1 ms 2080 KiB
sample_02 AC 1 ms 2032 KiB
sample_03 AC 1 ms 2024 KiB
sample_04 AC 2 ms 2116 KiB