题目描述
Problem Description
Osmium_1008, a student at PAKEN Academy, has to complete $ N $ assignments. Initially, Osmium_1008 has $ E $ energy, and completing the $ i $th assignment requires $ A_i $ energy. Osmium_1008 cannot act in a way that makes his energy drop below $ 0 $.
Realizing that he might not be able to finish his assignments, Osmium_1008 decides to drink energy drinks. There are $ M $ energy drinks, and drinking the $ j $th energy drink increases his energy by $ B_j $. However, concerned about his health, Osmium_1008 wants to drink as few energy drinks as possible and will drink at most $ K $ of them.
Determine if Osmium_1008 can complete all his assignments. If he can, output the minimum number of energy drinks he must drink. If he cannot, output the maximum number of assignments he can complete.
Input Format
The input is given from the standard input in the following format:
$ N $ $ M $ $ K $ $ E $
$ A_1 $ $ A_2 $ $\ldots$ $ A_{N-1} $ $ A_N $
$ B_1 $ $ B_2 $ $\ldots$ $ B_{M-1} $ $ B_M $
Output Format
If Osmium_1008 can complete all assignments, output Yes followed by the minimum number of energy drinks he must drink on the next line.
If he cannot, output No followed by the maximum number of assignments he can complete on the next line.
Sample Input and Output
Sample Input #1
4 5 3 15 2 6 56 3 4 8 2
Sample Output #1
Yes3
Sample Input #2
None
Sample Output #2
No3
Sample Input #3
None
Sample Output #3
Yes1
Sample Input #4
None
Sample Output #4
No8
Notes/Hints
Constraints
- All inputs are integers.
- $1\leq\ N,M\leq\ 2\times\ 10^5$
- $1\leq\ K\leq\ M$
- $0\leq\ E\leq\ 10^8$
- $1\leq\ A_i,B_j\leq\ 10^8$
- $A_1+A_2+\ldots\ +A_{N-1}+A_N\ >\ E$
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分