← Back to List

12788번: 제 2회 IUPC는 잘 개최될 수 있을까? ↗

Solutions

Python 3
223 B | 223 chars
N=int(input())
M,K=list(map(int,input().split()))
L = list(map(int,input().split()))
L.sort(reverse = True)
S = M*K
for i,j in enumerate(L):
    S -= j
    if S<=0:
        print(i+1)
        break
else:
    print("STRESS")