79357511

Date: 2025-01-15 08:34:46
Score: 2
Natty:
Report link

d=int(input)

w=int(input()

h=[]

for i in range(w):

h.append(int(input())

s=[]

while true:

s.append(h[random.randint(1,len(w))])

if sum(s)==d:

    break
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Pin Beach