1. put 6 on each side of the scale to get the heavier side
$ g; Q3 R6 o9 {( m2 Q+ j V2. take off any two balls from the more heavier side (among 6 balls) and put 2 on each side of the scale to weigh and get the heavier side(which are 2 balls) {if at this moment the scale is balanced, then weigh the 2 balls which we took out before} {if at this moment the scale is not balanced, then go 3}
9 D8 `* m4 n9 D3. put one on each side to weigh and get the heavier one. |