It is said that Chen jingrun thought about three days of math problems. How long can you calculate it?
Three friends Zhao, Qian and sun went fishing along the river. I don't know when I went there. They have been fishing for a long time, and they have caught a lot of fish! At this moment, Zhao said, "You should catch fish first. I will buy something and I will be back soon ." The remaining money and Sun spent while fishing and waiting for Zhao to return. It's still unclear how long it took to wait. It's been a long time! In the end, I was in a hurry because I was hungry! I am still worried about money: "If you want to catch fish first, I will go and see what happened to Zhao ." The remaining sun was waiting for Zhao and Qian to return. That is also the sentence ---- it is unclear how long it has been waiting. It has been a long time! Sun said to himself: "I don't know how long it will take, or I can take the fish back first ." He split the pile of fish into three portions. Unfortunately ----- one more! How can this problem be solved? After all, they are friends and sun is not greedy. He put the extra one into the river and screwed his own one and went home! Who knows when Sun Gang leaves, Zhao will be back. Because I did not buy any food, I found several more stores, which delayed the time. Zhao then said to himself: "Where have people been. Otherwise, I can take the fish back first ." He also divided the heap of fish into three portions (because I don't know it's already done ). Unfortunately ----- come out with another one! How can this problem be solved? After all, they are friends and Zhao is not greedy. He put the extra one into the river and screwed up his home! Who knows when Zhao Gang leaves? The money is back. Money said to himself: "Where have people been. Otherwise, I can take the fish back first ." He divided the heap of fish into three portions (because I don't know it's already done ). Unfortunately ----- come out with another one! How can this problem be solved? After all, they are friends and money is not greedy. He put the extra one into the river and screwed up his home! The story is over, and the problem also arises. How many fish have they caught at least?
The following is the program code
<Script language = vbscript> <br/> for I = 1 to 100 <br/> x = I <br/> if x mod 3 = 1 then x = (x \ 3) * 2 <br/> if x mod 3 = 1 then x = (x \ 3) * 2 <br/> if x mod 3 = 1 then document. write I & "<br>" <br/> next <br/> </script> <br/>
The following are the Program Computing results:
25
52
79
At least 25 fish caught
My original answer is 40. I forgot to divide it and I should leave two more, instead of the first one I thought.
The original incorrect answer is in red.
<Script language = VBScript>
For 1 to 100
X = I
If x mod 3 = 1 then x = x \ 2
If x mod 3 = 1 then x = x \ 2
If x mod 3 = 1 then document. write I & "<br>"
Next
</Script>