Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
l
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(false) else sol = raise(true) 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
Please
log in
to post a comment.
Code golf - ASCII art #1
Creating habits. Lua
dd
Roots without the math library in Lua
Hand positions in a circle
VERSION
Simple Lua primality test
Dirty Bag 'o Tokens Maker
Conta valores acima da média - LUA
hack
Please log in to post a comment.