Submission #24106266
Source Code Expand
II=lambda:int(input())
MI=lambda:map(int,input().split())
OI=lambda:map(int,open(0).read().split())
N,X=MI()
*A,=MI()
ans=('No','Yes')[sum(A)-N//2<=X]
print(ans)
Submission Info
| Submission Time | |
|---|---|
| Task | B - Can you buy them all? |
| User | Pandruant |
| Language | Python (3.8.2) |
| Score | 200 |
| Code Size | 163 Byte |
| Status | AC |
| Exec Time | 27 ms |
| Memory | 9112 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_00.txt, sample_01.txt, sample_02.txt |
| All | case_00.txt, case_01.txt, case_02.txt, case_03.txt, case_04.txt, case_05.txt, case_06.txt, case_07.txt, sample_00.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| case_00.txt | AC | 20 ms | 8880 KiB |
| case_01.txt | AC | 20 ms | 8872 KiB |
| case_02.txt | AC | 19 ms | 9108 KiB |
| case_03.txt | AC | 27 ms | 8880 KiB |
| case_04.txt | AC | 22 ms | 9104 KiB |
| case_05.txt | AC | 25 ms | 8876 KiB |
| case_06.txt | AC | 20 ms | 9036 KiB |
| case_07.txt | AC | 20 ms | 8976 KiB |
| sample_00.txt | AC | 21 ms | 9032 KiB |
| sample_01.txt | AC | 22 ms | 8868 KiB |
| sample_02.txt | AC | 21 ms | 9112 KiB |