+ 6
📦📦📦[Challenge] 🎅🎅Santas parcels 📦📦📦
This year Santa Claus has 3 kinds of parcels: a,b and c. weight of a: 3 units weight of b: 2 units weight of c: 0.5 units On his sled there are 100 parcels and the weight of them all is 100 units. How many parcels of each kind are on Santas sled?(more than 1 solution) what is the solution, if Santa took less than 70 parcels of kind c? Every language is welcome have fun and let it snow
43 Réponses
+ 12
Here's my try :
https://code.sololearn.com/c6Rk69LfGRDa/?ref=app
+ 5
dont understand the question.
+ 5
@haitham stay cool! anna is the ghost of sololearn.
a bit spookey but ... okay
+ 4
heres mine...# batman
one liner
https://code.sololearn.com/cotknw3j1160/?ref=app
+ 4
My tries: I think generator equally effective like recursive, so first one with generator and second one list and for loop.
https://code.sololearn.com/cVeYnWcy1HJ7/?ref=app
https://code.sololearn.com/cE5zOhE3u7f4/?ref=app
+ 3
@gabby
a wrong answer is:
50 parcels of kind a
40 parcels of kind b
10 parceld of kind c
all together are 100 parcels, but the weight is
50*3 + 40*2 + 10*0.5 = 235 units
+ 3
Ou thanks :)
+ 3
@calvin ok but a program please.
+ 3
@ferhat thanks for generator! so many opportunities ... exciting!
+ 2
3a + 2b + 0.5c = 100
a + b + c = 100
=>
a = 1.5c - 100
b = 200 - 2.5c
=>
c= 70
a= 5
b= 25
+ 1
https://code.sololearn.com/WGtdWeUsM5D0/?ref=app
0
???
0
@Batman hhhhh ah i am new in sololearn community.... btw your challenge is my first participate here 😌👍