[ Huawei OD Computer Test] - Real questions!! Click here! !
[ Huawei OD computer test] Classification of real test points!! Click here !!
Question description
Maverick's child's birthday is coming soon. He plans to buy a cake and a small gift for the child. One cake and one small gift each.
His budget does not exceed x yuan. Cakes and gifts are available in a variety of price ranges.
Please return how many purchase options there are for Mavericks.
Enter description
The first line represents the unit price of cake, separated by commas
The second line represents the unit price of the gift, separated by commas
The third line represents x budget
Output description
The output number represents the total number of purchase options
Remark
1 ≤ cake.length ≤ 10^5
1 ≤ gift.length ≤10^5
1 ≤ cake[i],gift[i] ≤ 10^5
1 ≤ X ≤ 2*10^5
Use case 1
enter
10,20,5
5,5,2
15
output
6
illustrate
Explanation: Mavericks has 6 purchase plans. The corresponding subscripts of the selected cake and selected gift in the array are: </