Submission #67294270
Source Code Expand
#[allow(unused_imports)]
use proconio::input;
fn main() {
input!{
n: usize,
m: u64,
a: [u64; n],
}
let s = a.iter().sum::<u64>();
println!("{}", if s<=m { "Yes" } else { "No" });
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Content Too Large |
| User | ardRiriy |
| Language | Rust (rustc 1.70.0) |
| Score | 100 |
| Code Size | 236 Byte |
| Status | AC |
| Exec Time | 0 ms |
| Memory | 2068 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 0 ms | 1964 KiB |
| 00_sample_01.txt | AC | 0 ms | 1840 KiB |
| 00_sample_02.txt | AC | 0 ms | 1900 KiB |
| 01_random_03.txt | AC | 0 ms | 1956 KiB |
| 01_random_04.txt | AC | 0 ms | 2064 KiB |
| 01_random_05.txt | AC | 0 ms | 1736 KiB |
| 01_random_06.txt | AC | 0 ms | 1904 KiB |
| 01_random_07.txt | AC | 0 ms | 1960 KiB |
| 01_random_08.txt | AC | 0 ms | 1904 KiB |
| 01_random_09.txt | AC | 0 ms | 1916 KiB |
| 01_random_10.txt | AC | 0 ms | 1860 KiB |
| 01_random_11.txt | AC | 0 ms | 1852 KiB |
| 01_random_12.txt | AC | 0 ms | 2068 KiB |