Round 1

The winner of the CodeFu 2011 Round 1 is Predrag Gruevski

Congratulations to obi1kenobi who solved all 5 problems in 1 hour 33 minutes.

The winner of the first iPod is Predrag Gruevski

The winner of the second iPod is Mirza Maznikar

The calculation for the random iPod touch is ((21*2 + 23*5 + 38*8 + 47*11 + 50*13) mod 109 ) + 2 = 104
104 = qwertyThis = Mirza Maznikar

In order to be transparent with the choice, the following algorithm will be used:

  • 5 numbers will be taken from the Euro Millions Lottery 8th of April draw
  • You can see the numbers here
  • Those 5 numbers will be sorted
  • Then multiplied with the following factors: 2 for the smallest number, 5, 8, 11 and 13 for the biggest number, and then a total sum calculated
  • Note: The factors: 2, 5, 8, 11, 13 are chosen so that there is a smallest deviation among all possibilities, i.e. all positions have the same (or very close) possibility for being a winner
  • The total sum will be cut modulo 109 and then added 2 (to get a range of 2-110, these are the competitors eligible for the prize)
  • Example
    Lottery numbers from the last week were 4, 8, 21, 35, 45
    4 * 2 + 8 * 5 + 21 * 8 + 35 * 11 + 45 * 13 = 1186
    1186 % 109 + 2 = 98 This means the person with number 98 (this is still an example) would receive the random iPod

The position numbers are:

NumberUsername
2 BojanKostadinov
3 martinancevski
4 filipbitola
5 stpanov
6 birbbit
7 igorkulev
8 userresu
9 mg
10 Goran
11 lazzrov
12 bojanserafimov
13 delixd
14 time_bandit
15 darkomk
16 Imaginary
17 aleksp
18 VladD
19 kujta1
20 berezitski
21 zdr_vlad
22 Ilija139
23 gorgiRankovski
24 sweko
25 digitalis
26 Nikola
27 domenica
28 gajduk
29 Bujo0
30 stef
31 emimarkovska
32 boro
33 bojanv91
34 kamikaza
35 vasja
36 vl4d1m1r4
37 nemaime
38 draganzahariev
39 acker
40 Daniel
41 CursedPerVerse
42 yoyoyoman
43 mangelovski
44 teddy
45 bPop
46 anili100
47 gella
48 mafy_b
49 boban_r
50 filip
51 prankmaster
52 nenadmk
53 Kex
54 nd_r
55 miki_dimitrovski
56 miko90
57 p.bojan
58 jovank
59 Vojtex
60 Krcko
61 Antagonist
62 nikolay
63 igorG
64 Steff
65 marko
66 XtendT
67 poisonIvy
68 Flerp
69 sumar
70 aleksmk
71 Vojce
72 AlexGvG
73 tp
74 LordRaydenMK
75 Mar4eloni
76 karakondjul
77 bluePlayer34
78 bakobako
79 Tamara_n
80 FREEZX
81 aleks
82 kosta984
83 mephisto
84 ver4e
85 Microsd
86 VasilK
87 lunatic3331
88 nikolakoco
89 nn2044
90 tStojkovski
91 ile
92 sheno
93 WpXAce
94 borceg
95 marinailioska
96 EthanHunt
97 finger.k4
98 AleksandarT
99 angel
100 ternistato
101 bedjovski
102 cady
103 madshockie
104 qwertyThis
105 bobby
106 Fiksa
107 filipjovi
108 efi
109 Klinec
110 ProbePLayer