What the above solutions forget is exploiting the fact that when the stones allow you to weight an object with weight X and they allow you to weight an object with weight X+2, you can implicitly weigh something with weight X+1 by stating that it is heavier then X but lighter then X+2 ( And it must be integer ).
Ez egy nagyon jó ötlet, ez például eszembe sem jutott volna. (A lényege, hogy ha valami tömege X+1 és ezt leméred egy X-el, majd X+2-vel és elõször azt kapod, hogy X-nél nehezebb, de X+2-nél könnyebb, akkor a tömege X+1, mert a tömegek egészek. - Zseniális!!!)
Bizonyításon nem gondolkodtam, brute-force algoritmust választottam volna én is, mivel elég kis adatkupacon kell végiglépkedni.