P15939 [HackerEarth] David is playing a game. Currently in the game, he is at a field full of stones. There are total N kinds of
普及
题目描述

David is playing a game. Currently in the game, he is at a field full of stones. There are total N kinds of
stones. There is unlimited supply of each kind of stone.

David knows that one stone of kind i needs Ai minutes to pick it from the ground and it will give David a profit of
Bi Rs.

David has K minutes of free time. During this free time, David want to pick stones so as to maximize his profit.
But he can not pick stones of different kinds, he has to pick stones of a single kind.

Please help David to find the maximal possible profit.

INPUT
First line contains single integer T denoting the number of test cases.
First line of each test case contains two integers N and K.
Next line contains N integers Ai denoting the time needed to pick one stone of kind i.
Next line contains N integers Bi denoting the profit due to picking ithth stone.

OUTPUT

For each test case, print a single line containing maximal possible profit.

CONSTRAINTS

1 ≤ T ≤ 5

1 ≤ N ≤ 10^5

1 ≤ K ≤ 10^9

1 ≤ Ai, Bi ≤ 10^9

SAMPLE INPUT
1
3 10
3 4 5
4 4 5

SAMPLE OUTPUT
12

Explanation

If David picks stones of first kind he can pick 3 stones, he will get a profit of 34 = 12 Rs.
If David picks stones of second kind he can pick 2 stones, he will get a profit of 24 = 8 Rs.
If David picks stones of third kind he can pick 2 stones, he will get a profit of 2*5 = 10 Rs.

So the maximum possible profit is 12.

输入格式

见题面

输出格式

见题面

样例输入
5 3 5 2 3 5 3 4 7 2 4 4 6 6 8 3 9 1 6 9 6 9 2 4 6 1 2 6 7 2 3 9 8 5 22 45 78 89 12 56 99 23 44 55 67
样例输出
7 6 54 12 55