1.2 KiB
1.2 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f4d41000cf542c50ffe7 | 5 | Problem 360: Scary Sphere | 问题360:可怕的球体 |
Description
令C(r)为半径为r且在原点O(0,0,0)中心的球体。设I(r)是C(r)表面上具有整数坐标的所有点的集合。设S(r)是I(r)的所有元素与原点O的曼哈顿距离之和。
例如S(45)= 34518。
找到S(1010)。
Instructions
Tests
tests:
- text: <code>euler360()</code>应该返回878825614395267100。
testString: 'assert.strictEqual(euler360(), 878825614395267100, "<code>euler360()</code> should return 878825614395267100.");'
Challenge Seed
function euler360() {
// Good luck!
return true;
}
euler360();
Solution
// solution required