Home > other >  Masters, help bai
Masters, help bai

Time:09-18

Python
Three problems with enumeration algorithm is

(1) a, b two people go to buy wine, don't know who buy more who buy less, only know b a third of the money to buy wine with a purchase money just for the sum of 200 yuan, if b is a half of the money to buy wine, there are 200 yuan, is a, b two people purchase of how much is the cost?

(2) xiao Ming has 70 sheep, each big sheep shearing 1.6 kg, 1.2 kg of wool, lamb per now a total of 106 kg cut wool, each have how many big sheep and lambs, please?

(3) this is a group of chickens and ducks are kept in a pen, known for half of the duck, chicken master in counting chickens, ducks, found that eight duck wings to fly out of the pen, and hiding in six chickens lay eggs in the nest, then counted again, 3 times for the chicken, duck, please calculate a calculate, chicken, duck, how many original?

CodePudding user response:

Their use for I in range (1, maximum number + 1) : the cycle, simple questions