Edited by phananhtuan, 07 August 2014 - 06:27 AM.
How do I solve this problem on the days in months?
Kebblet - Dec 15 2020 03:51 PM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Posted 07 August 2014 - 06:25 AM
Posted 07 August 2014 - 03:11 PM
Edited by Kadence, 07 August 2014 - 03:35 PM.
"I do what I want" - Maury Show
Posted 08 August 2014 - 07:52 AM
i will do like that:
for i:=1 to 12 do
with a coin, i review it like as counterfeit coin
assuming it hevier or lighter, use it for input, if ok then it a coin we must find
but i dont know how to input
Posted 08 August 2014 - 08:29 AM
The usual strategy is something like putting four coins on each side of a scale, and comparing weights. Then swap one set of coins for a set not on the scale and compare again. That tells you 1) whether the face is heavier or lighter, and 2) which set it's in. Split the set with the fake in half, compare, split the set with the fake in half again (now 1 and 1), compare, and you found it.
My MineCraft server site: http://banishedwings.enjin.com/