title: Google-Kick Start, ROUND-A, Allocation:- Test set skipped
body: <p>I participated in Kick Start and attempted this question:</p>
  
  <p><strong>Problem</strong></p>
  
  <p>There are N houses for sale. The i-th house costs Ai dollars to buy. You have a budget of B dollars to spend.</p>
  
  <p>What is the maximum number of houses you can buy?</p>
  
  <p><strong>Input</strong></p>
  
  <p>The first line of the input gives the number of test cases, T. T test cases follow. Each test case begins with a single line containing the two integers N and B. The second line contains N integers. The i-th integer is Ai, the cost of the i-th house.</p>
  
  <p><strong>Output</strong></p>
  
  <p>For each test case, output one line containing Case #x: y, where x is the test case number (starting from 1) and y is the maximum number of houses you can buy.</p>
  
  <p>Full question:-  <a href="https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ffc7/00000000001d3f56" rel="nofollow noreferrer">https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ffc7/00000000001d3f56</a></p>
  
  <p>AND this was my code</p>
  
  <pre><code>t = int(input())
  if 1 &lt;= t &lt;= 100:
      for case in range(t):
          n, b = map(int, input().split())
          a = map(int, input().split())
          s, c = 0, 0
          for i in sorted(a):
              s += i
              if s &lt;= b:
                  c += 1
              else:
                  print("Case #{0}: {1}".format(case+1, c))
                  break
  </code></pre>
  
  <p>I kept on getting test set skipped, I just want to know what is wrong with my code?</p>
  
  <p>Is there any possible test set where this solution won't work?</p>