Details: a farmer went to cut down a tree, the tree has 300 wood, farmers need cut 20 can take 10 wood, when I type fast after the English book of cutting trees, farmers cut just take 10 wood, there is nothing wrong with OK here. The problem is that the enemy farmers, too, cut also take 10 wood, I think only I can cut down a tree quickly, how should I do?
CodePudding user response:
Online there are many tutorials, isn't it?CodePudding user response:
what you said is which one type of tutorialsCodePudding user response:
who is there to help me see, this code is what meaning, I just saw a metastasis and the role of floating point Numbers, this code if I gave it to blank instruction, they cut down a tree cut down forever farmers, farmers themselves will not take a piece of wood, but I do not give blank instruction, farmers will cut 3 to take a piece of woodCodePudding user response:
After I opened quickly cut down a tree or mods (farmers a knife take 10 block of wood) found in aacef position with a piece of code, such as the transfer of the above, when I shut down, use the above transfer code, found that farmers can indeed one knife cut I go 10 wood, of course the tree inside the wood number has not changed, that is to say, never cut down the tree, although my farmers each time a knife cut 10 wood,
Farmers so I found that there should be a tree of efficiency, but unfortunately I don't know how to find the efficiency of cut down a tree, what should I do, dear?