for Round 3 |
Problem 1: Channels against Floods
Problem 2: Choosing the Stones
Problem 3: Numbers
The evaluation of the problem "Channels against Floodings" The program 'CHANNELS' of the 'Author' competitor Test 1 -> Time 110ms -> O.K. -> Score 3 points Test 2 -> Time 110ms -> O.K. -> Score 3 points Test 3 -> Time 110ms -> O.K. -> Score 4 points Test 4 -> Time 165ms -> O.K. -> Score 4 points Test 5 -> Time 110ms -> O.K. -> Score 4 points Test 6 -> Time 660ms -> O.K. -> Score 4 points Test 7 -> Time 220ms -> O.K. -> Score 4 points Test 8 -> Time 110ms -> O.K. -> Score 4 points Total Score : 30 points.
an = trunc(1 + sqrt (5)) / 2)
bn = trunc(3 + sqrt (5)) / 2).
m := trunc ((-1 + sqrt (1+8*n))/2); x := n-m*(m+1)/2; y := m-n+m*(m+1)/2;