1.6 KiB
1.6 KiB
id, challengeType, videoUrl, localeTitle
id | challengeType | videoUrl | localeTitle |
---|---|---|---|
5900f48b1000cf542c50ff9e | 5 | 问题287:四叉树编码(一种简单的压缩算法) |
Description
该图像可以通过几个序列来描述,例如: 长度为30的“ 001010101001011111111010101101” 长度为16的“ 0100101111101110”是此图像的最小序列。
对于正整数N,使用以下着色方案将DN定义为2N×2N图像: 坐标x = 0,y,= 0的像素对应于左下像素, 如果(x-2N-1)2 +(y-2N-1)2≤22N-2,则像素为黑色, 描述D24的最小序列的长度是多少?
Instructions
Tests
tests:
- text: <code>euler287()</code>应该返回313135496。
testString: assert.strictEqual(euler287(), 313135496);
Challenge Seed
function euler287() {
// Good luck!
return true;
}
euler287();
Solution
// solution required
/section>