+ 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

17th Nov 2017, 7:34 AM
Oma Falk
Oma Falk - avatar
43 Answers
17th Nov 2017, 4:30 PM
LukArToDo
LukArToDo - avatar
+ 5
dont understand the question.
17th Nov 2017, 7:48 AM
Berli 🇮🇩
Berli 🇮🇩 - avatar
17th Nov 2017, 1:36 PM
Oma Falk
Oma Falk - avatar
+ 5
@haitham stay cool! anna is the ghost of sololearn. a bit spookey but ... okay
22nd Nov 2017, 6:05 PM
Oma Falk
Oma Falk - avatar
+ 4
heres mine...# batman one liner https://code.sololearn.com/cotknw3j1160/?ref=app
17th Nov 2017, 10:27 AM
sayan chandra
sayan chandra - avatar
+ 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
19th Nov 2017, 6:00 PM
Ferhat Sevim
Ferhat Sevim - avatar
+ 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
17th Nov 2017, 8:04 AM
Oma Falk
Oma Falk - avatar
+ 3
Ou thanks :)
17th Nov 2017, 8:05 AM
Berli 🇮🇩
Berli 🇮🇩 - avatar
+ 3
@calvin ok but a program please.
17th Nov 2017, 8:26 AM
Oma Falk
Oma Falk - avatar
+ 3
@ferhat thanks for generator! so many opportunities ... exciting!
19th Nov 2017, 6:20 PM
Oma Falk
Oma Falk - avatar
+ 2
3a + 2b + 0.5c = 100 a + b + c = 100 => a = 1.5c - 100 b = 200 - 2.5c => c= 70 a= 5 b= 25
17th Nov 2017, 8:07 AM
Calviղ
Calviղ - avatar
22nd Nov 2017, 10:05 AM
Haitham AlHazmy
Haitham AlHazmy - avatar
+ 1
https://code.sololearn.com/WGtdWeUsM5D0/?ref=app
17th Nov 2017, 11:34 AM
Calviղ
Calviղ - avatar
17th Nov 2017, 4:38 PM
Calviղ
Calviղ - avatar
0
???
22nd Nov 2017, 4:46 PM
Haitham AlHazmy
Haitham AlHazmy - avatar
0
@Batman hhhhh ah i am new in sololearn community.... btw your challenge is my first participate here 😌👍
22nd Nov 2017, 11:26 PM
Haitham AlHazmy
Haitham AlHazmy - avatar