hello, i executed my code on my local server and it works without problem but 
when i submit i get the RE error
What's the problem?


def solution():
    N,B=map(int,input().split())
    
    A=map(int,input().split())
    A.sort()
    cout=0
    for i in A:
        if i<=B:
            B-=i
            
            cout+=1
    return cout
        
T=int(input()) 
for x in range(1,T+1):
    print ("Case #{}: {}".format(x,solution()))



-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/2c0e368a-06ad-4ede-b5d7-6c37bd9f5607%40googlegroups.com.

Reply via email to