Home Web Board ProblemSet Standing Status Statistics
long long输出请使用 %lld服务器的python版本为3.4
Problem A: 付款问题

Problem A: 付款问题

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 253  Solved: 34
[Submit][Status][Web Board]

Description

Input

Output

Sample Input

2
6 200
1 5 10 20 50 100
6 22
1 5 10 20 50 100

Sample Output

2
3

HINT

[Submit][Status][Web Board]