blob: 7638f089a1647269d63cff32a6ff732538509e4d (
plain)
1
2
3
4
5
6
7
8
9
10
|
function trees() {
var i = 0, o = [0,0,0];
for (i = 0; i < 100; ++i) {
if ((i & 1) == 0) o[0]++;
else if ((i & 2) == 0) o[1]++;
else o[2]++;
}
return String(o);
}
assertEq(trees(), "50,25,25");
|