Submission #67297065
Source Code Expand
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <bitset>
#include <numeric>
using namespace std;
#define ll long long
#define vi vector<int>
#define vs vector<string>
#define vll vector<long long>
#define vii vector <<int>, <int>>
#define vllvector <<ll>, <ll>>
#define vb vector<bool>
#define yes cout << "Yes" << endl;
#define no cout << "No" << endl;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, m;
cin >> n >> m;
vi input(n);
rep(i, n) {
cin >> input[i];
}
int sum = 0;
rep(i,n) {
sum += input[i];
}
if(m >= sum){
yes
} else {
no
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Content Too Large |
| User | kar1neko |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 856 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3472 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 | 1 ms | 3388 KiB |
| 00_sample_01.txt | AC | 1 ms | 3460 KiB |
| 00_sample_02.txt | AC | 1 ms | 3308 KiB |
| 01_random_03.txt | AC | 1 ms | 3468 KiB |
| 01_random_04.txt | AC | 1 ms | 3428 KiB |
| 01_random_05.txt | AC | 1 ms | 3472 KiB |
| 01_random_06.txt | AC | 1 ms | 3316 KiB |
| 01_random_07.txt | AC | 1 ms | 3468 KiB |
| 01_random_08.txt | AC | 1 ms | 3444 KiB |
| 01_random_09.txt | AC | 1 ms | 3448 KiB |
| 01_random_10.txt | AC | 1 ms | 3416 KiB |
| 01_random_11.txt | AC | 1 ms | 3468 KiB |
| 01_random_12.txt | AC | 1 ms | 3440 KiB |