Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ok
zbirsvihostalih = 0 for i=1, N do if i ~= myself then colors[i] = colors[i]-1 end end for i=1, N do if i ~= myself then zbirsvihostalih = zbirsvihostalih + colors[i] else zbirsvihostalih = zbirsvihostalih end end zbirsvihostalih = (zbirsvihostalih % 2) zbirsvih = 0 sol = {} if(zbirsvihostalih == 0) then sol = raise(0) else sol = raise(1) end if myself == 1 then zbirsvih = (sol[2] + colors[2])%2 else zbirsvih = (sol[1] + colors[1])%2 end answer = (zbirsvih-zbirsvihostalih+2)%2 answer = answer+1
run
|
edit
|
history
|
help
0
Testingassets
Newton-Raphson method for the square root
example for a friend
10 Line challenge
Conta valores acima da média - LUA
wwww
PAID HACK PuBG
Weird Lua OOP Lib
Monty Hall Problem Simulated
MXR