This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let sailorDivide pile = | |
let monkeyShare = 1 | |
let preDividePile = pile - monkeyShare | |
let sailorShare = preDividePile / 5 | |
if not (sailorShare * 5 = preDividePile) then -1 | |
else preDividePile - sailorShare | |
let groupDivide pile = | |
let sailorShare = pile / 5 | |
if not (sailorShare * 5 = pile) then -1 | |
else 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net stop wuauserv | |
rmdir %windir%\softwaredistribution /s /q | |
regsvr32 /s wuaueng.dll | |
regsvr32 /s wuaueng1.dll | |
regsvr32 /s atl.dll | |
regsvr32 /s wups.dll | |
regsvr32 /s wups2.dll | |
regsvr32 /s wuweb.dll | |
regsvr32 /s wucltui.dll | |
net start wuauserv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://alexnisnevich.github.io/untrusted/ | |
// Level 13 | |
var dirs = ['up', 'right', 'down', 'left'] | |
if (!me.d) me.d = 0; | |
function dir(o) { return dirs[(me.d + o)%4]; } | |
var canMove = false; | |
var changeDir = 0; | |
if (me.canMove(dir(1))) { |
NewerOlder