Cody

Solution 2153480

Submitted on 8 Mar 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
assert(isequal(circle_points(1),4))

y = 5

Assertion failed.

2   Fail
assert(isequal(circle_points(3),4))

y = 33.2580

Assertion failed.

3   Fail
assert(isequal(circle_points(5),12))

y = 86.9262

Assertion failed.

4   Fail
assert(isequal(circle_points(65),36))

y = 1.3395e+04

Assertion failed.

5   Fail
assert(isequal(circle_points(64090),324))

y = 1.2904e+10

Assertion failed.

6   Fail
assert(isequal(circle_points(326441),12))

y = 3.3478e+11

Assertion failed.

7   Fail
assert(isequal(circle_points(359125),420))

y = 4.0517e+11

Assertion failed.

8   Fail
assert(isequal(circle_points(1000001),36))

Output argument "y" (and maybe others) not assigned during call to "circle_points". Error in Test8 (line 1) assert(isequal(circle_points(1000001),36))

9   Fail
assert(isequal(circle_points(2417899275),20))

Output argument "y" (and maybe others) not assigned during call to "circle_points". Error in Test9 (line 1) assert(isequal(circle_points(2417899275),20))

10   Fail
assert(isequal(circle_points(31432690549),8748))

Output argument "y" (and maybe others) not assigned during call to "circle_points". Error in Test10 (line 1) assert(isequal(circle_points(31432690549),8748))

11   Fail
assert(isequal(circle_points(11472932050385),78732))

Output argument "y" (and maybe others) not assigned during call to "circle_points". Error in Test11 (line 1) assert(isequal(circle_points(11472932050385),78732))

12   Fail
assert(isequal(circle_points(1021090952484265),236196))

Output argument "y" (and maybe others) not assigned during call to "circle_points". Error in Test12 (line 1) assert(isequal(circle_points(1021090952484265),236196))

13   Fail
assert(isequal(circle_points(6095127531752228),78732))

Output argument "y" (and maybe others) not assigned during call to "circle_points". Error in Test13 (line 1) assert(isequal(circle_points(6095127531752228),78732))

14   Fail
assert(isequal(circle_points(5*circle_points(630209)),12))

Output argument "y" (and maybe others) not assigned during call to "circle_points". Error in Test14 (line 1) assert(isequal(circle_points(5*circle_points(630209)),12))

15   Fail
y=arrayfun(@(x) circle_points(x),1000:2000); [m1,m2]=max(y); assert(isequal(m1-m2,2)); [h1,h2]=hist(y,unique(y)); assert(isequal(prod(h1-h2),1399066124544000))

y = 3.1436e+06 y = 3.1498e+06 y = 3.1561e+06 y = 3.1624e+06 y = 3.1687e+06 y = 3.1751e+06 y = 3.1814e+06 y = 3.1877e+06 y = 3.1940e+06 y = 3.2004e+06 y = 3.2067e+06 y = 3.2131e+06 y = 3.2194e+06 y = 3.2258e+06 y = 3.2322e+06 y = 3.2385e+06 y = 3.2449e+06 y = 3.2513e+06 y = 3.2577e+06 y = 3.2641e+06 y = 3.2705e+06 y = 3.2769e+06 y = 3.2834e+06 y = 3.2898e+06 y = 3.2962e+06 y = 3.3026e+06 y = 3.3091e+06 y = 3.3155e+06 y = 3.3220e+06 y = 3.3285e+06 y = 3.3349e+06 y = 3.3414e+06 y = 3.3479e+06 y = 3.3544e+06 y = 3.3609e+06 y = 3.3674e+06 y = 3.3739e+06 y = 3.3804e+06 y = 3.3869e+06 y = 3.3935e+06 y = 3.4000e+06 y = 3.4065e+06 y = 3.4131e+06 y = 3.4196e+06 y = 3.4262e+06 y = 3.4328e+06 y = 3.4393e+06 y = 3.4459e+06 y = 3.4525e+06 y = 3.4591e+06 y = 3.4657e+06 y = 3.4723e+06 y = 3.4789e+06 y = 3.4855e+06 y = 3.4921e+06 y = 3.4987e+06 y = 3.5054e+06 y = 3.5120e+06 y = 3.5187e+06 y = 3.5253e+06 y = 3.5320e+06 y = 3.5386e+06 y = 3.5453e+06 y = 3.5520e+06 y = 3.5587e+06 y = 3.5654e+06 y = 3.5721e+06 y = 3.5788e+06 y = 3.5855e+06 y = 3.5922e+06 y = 3.5989e+06 y = 3.6056e+06 y = 3.6124e+06 y = 3.6191e+06 y = 3.6259e+06 y = 3.6326e+06 y = 3.6394e+06 y = 3.6461e+06 y = 3.6529e+06 y = 3.6597e+06 y = 3.6665e+06 y = 3.6733e+06 y = 3.6801e+06 y = 3.6869e+06 y = 3.6937e+06 y = 3.7005e+06 y = 3.7073e+06 y = 3.7141e+06 y = 3.7210e+06 y = 3.7278e+06 y = 3.7347e+06 y = 3.7415e+06 y = 3.7484e+06 y = 3.7552e+06 y = 3.7621e+06 y = 3.7690e+06 y = 3.7759e+06 y = 3.7828e+06 y = 3.7897e+06 y = 3.7966e+06 y = 3.8035e+06 y = 3.8104e+06 y = 3.8173e+06 y = 3.8243e+06 y = 3.8312e+06 y = 3.8381e+06 y = 3.8451e+06 y = 3.8520e+06 y = 3.8590e+06 y = 3.8660e+06 y = 3.8729e+06 y = 3.8799e+06 y = 3.8869e+06 y = 3.8939e+06 y = 3.9009e+06 y = 3.9079e+06 y = 3.9149e+06 y = 3.9219e+06 y = 3.9289e+06 y = 3.9360e+06 y = 3.9430e+06 y = 3.9501e+06 y = 3.9571e+06 y = 3.9642e+06 y = 3.9712e+06 y = 3.9783e+06 y = 3.9854e+06 y = 3.9924e+06 y = 3.9995e+06 y = 4.0066e+06 y = 4.0137e+06 y = 4.0208e+06 y = 4.0279e+06 y = 4.0351e+06 y = 4.0422e+06 y = 4.0493e+06 y = 4.0564e+06 y = 4.0636e+06 y = 4.0707e+06 y = 4.0779e+06 y = 4.0851e+06 y = 4.0922e+06 y = 4.0994e+06 y = 4.1066e+06 y = 4.1138e+06 y = 4.1210e+06 y = 4.1282e+06 y = 4.1354e+06 y = 4.1426e+06 y = 4.1498e+06 y = 4.1570e+06 y = 4.1642e+06 y = 4.1715e+06 y = 4.1787e+06 y = 4.1860e+06 y = 4.1932e+06 y = 4.2005e+06 y = 4.2078e+06 y = 4.2150e+06 y = 4.2223e+06 y = 4.2296e+06 y = 4.2369e+06 y = 4.2442e+06 y = 4.2515e+06 y = 4.2588e+06 y = 4.2661e+06 y = 4.2735e+06 y = 4.2808e+06 y = 4.2881e+06 y = 4.2955e+06 y = 4.3028e+06 y = 4.3102e+06 y = 4.3175e+06 y = 4.3249e+06 y = 4.3323e+06 y = 4.3397e+06 y = 4.3471e+06 y = 4.3545e+06 y = 4.3619e+06 y = 4.3693e+06 y = 4.3767e+06 y = 4.3841e+06 y = 4.3915e+06 y = 4.3990e+06 y = 4.4064e+06 y = 4.4138e+06 y = 4.4213e+06 y = 4.4287e+06 y = 4.4362e+06 y = 4.4437e+06 y = 4.4511e+06 y = 4.4586e+06 y = 4.4661e+06 y = 4.4736e+06 y = 4.4811e+06 y = 4.4886e+06 y = 4.4961e+06 y = 4.5037e+06 y = 4.5112e+06 y = 4.5187e+06 y = 4.5263e+06 y = 4.5338e+06 y = 4.5413e+06 y = 4.5489e+06 y = 4.5565e+06 y = 4.5640e+06 y = 4.5716e+06 y = 4.5792e+06 y = 4.5868e+06 y = 4.5944e+06 y = 4.6020e+06 y = 4.6096e+06 y = 4.6172e+06 y = 4.6248e+06 y = 4.6325e+06 y = 4.6401e+06 y = 4.6477e+06 y = 4.6554e+06 y = 4.6630e+06 y = 4.6707e+06 y = 4.6783e+06 y = 4.6860e+06 y = 4.6937e+06 y = 4.7014e+06 y = 4.7091e+06 y = 4.7168e+06 y = 4.7245e+06 y = 4.7322e+06 y = 4.7399e+06 y = 4.7476e+06 y = 4.7553e+06 y = 4.7631e+06 y = 4.7708e+06 y = 4.7786e+06 y = 4.7863e+06 y = 4.7941e+06 y = 4.8018e+06 y = 4.8096e+06 y = 4.8174e+06 y = 4.8252e+06 y = 4.8330e+06 y = 4.8407e+06 y = 4.8486e+06 y = 4.8564e+06 y = 4.8642e+06 y = 4.8720e+06 y = 4.8798e+06 y = 4.8877e+06 y = 4.8955e+06 y = 4.9033e+06 y = 4.9112e+06 y = 4.9191e+06 y = 4.9269e+06 y = 4.9348e+06 y = 4.9427e+06 y = 4.9506e+06 y = 4.9584e+06 y = 4.9663e+06 y = 4.9742e+06 y = 4.9822e+06 y = 4.9901e+06 y = 4.9980e+06 y = 5.0059e+06 y = 5.0139e+06 y = 5.0218e+06 y = 5.0297e+06 y = 5.0377e+06 y = 5.0457e+06 y = 5.0536e+06 y = 5.0616e+06 y = 5.0696e+06 y = 5.0776e+06 y = 5.0855e+06 y = 5.0935e+06 y = 5.1016e+06 y = 5.1096e+06 y = 5.1176e+06 y = 5.1256e+06 y = 5.1336e+06 y = 5.1417e+06 y = 5.1497e+06 y = 5.1578e+06 y = 5.1658e+06 y = 5.1739e+06 y = 5.1819e+06 y = 5.1900e+06 y = 5.1981e+06 y = 5.2062e+06 y = 5.2143e+06 y = 5.2224e+06 y = 5.2305e+06 y = 5.2386e+06 y = 5.2467e+06 y = 5.2548e+06 y = 5.2629e+06 y = 5.2711e+06 y = 5.2792e+06 y = 5.2874e+06 y = 5.2955e+06 y = 5.3037e+06 y = 5.3119e+06 y = 5.3200e+06 y = 5.3282e+06 y = 5.3364e+06 y = 5.3446e+06 y = 5.3528e+06 y = 5.3610e+06 y = 5.3692e+06 y = 5.3774e+06 y = 5.3856e+06 y = 5.3939e+06 y = 5.4021e+06 y = 5.4103e+06 y = 5.4186e+06 y = 5.4268e+06 y = 5.4351e+06 y = 5.4434e+06 y = 5.4517e+06 y = 5.4599e+06 y = 5.4682e+06 y = 5.4765e+06 y = 5.4848e+06 y = 5.4931e+06 y = 5.5014e+06 y = 5.5097e+06 y = 5.5181e+06 y = 5.5264e+06 y = 5.5347e+06 y = 5.5431e+06 y = 5.5514e+06 y = 5.5598e+06 y = 5.5681e+06 y = 5.5765e+06 y = 5.5849e+06 y = 5.5933e+06 y = 5.6017e+06 y = 5.6100e+06 y = 5.6184e+06 y = 5.6269e+06 y = 5.6353e+06 y = 5.6437e+06 y = 5.6521e+06 y = 5.6605e+06 y = 5.6690e+06 y = 5.6774e+06 y = 5.6859e+06 y = 5.6943e+06 y = 5.7028e+06 y = 5.7113e+06 y = 5.7197e+06 y = 5.7282e+06 y = 5.7367e+06 y = 5.7452e+06 y = 5.7537e+06 y = 5.7622e+06 y = 5.7707e+06 y = 5.7792e+06 y = 5.7878e+06 y = 5.7963e+06 y = 5.8048e+06 y = 5.8134e+06 y = 5.8219e+06 y = 5.8305e+06 y = 5.8390e+06 y = 5.8476e+06 y = 5.8562e+06 y = 5.8648e+06 y = 5.8734e+06 y = 5.8819e+06 y = 5.8905e+06 y = 5.8992e+06 y = 5.9078e+06 y = 5.9164e+06 y = 5.9250e+06 y = 5.9336e+06 y = 5.9423e+06 y = 5.9509e+06 y = 5.9596e+06 y = 5.9682e+06 y = 5.9769e+06 y = 5.9856e+06 y = 5.9942e+06 y = 6.0029e+06 y = 6.0116e+06 y = 6.0203e+06 y = 6.0290e+06 y = 6.0377e+06 y = 6.0464e+06 y = 6.0551e+06 y = 6.0639e+06 y = 6.0726e+06 y = 6.0813e+06 y = 6.0901e+06 y = 6.0988e+06 y = 6.1076e+06 y = 6.1164e+06 y = 6.1251e+06 y = 6.1339e+06 y = 6.1427e+06 y = 6.1515e+06 y = 6.1603e+06 y = 6.1691e+06 y = 6.1779e+06 y = 6.1867e+06 y = 6.1955e+06 y = 6.2043e+06 y = 6.2132e+06 y = 6.2220e+06 y = 6.2309e+06 y = 6.2397e+06 y = 6.2486e+06 y = 6.2574e+06 y = 6.2663e+06 y = 6.2752e+06 y = 6.2841e+06 y = 6.2930e+06 y = 6.3019e+06 y = 6.3108e+06 y = 6.3197e+06 y = 6.3286e+06 y = 6.3375e+06 y = 6.3464e+06 y = 6.3554e+06 y = 6.3643e+06 y = 6.3733e+06 y = 6.3822e+06 y = 6.3912e+06 y = 6.4001e+06 y = 6.4091e+06 y = 6.4181e+06 y = 6.4271e+06 y = 6.4360e+06 y = 6.4450e+06 y = 6.4540e+06 y = 6.4631e+06 y = 6.4721e+06 y = 6.4811e+06 y = 6.4901e+06 y = 6.4992e+06 y = 6.5082e+06 y = 6.5172e+06 y = 6.5263e+06 y = 6.5354e+06 y = 6.5444e+06 y = 6.5535e+06 y = 6.5626e+06 y = 6.5717e+06 y = 6.5807e+06 y = 6.5898e+06 y = 6.5989e+06 y = 6.6081e+06 y = 6.6172e+06 y = 6.6263e+06 y = 6.6354e+06 y = 6.6446e+06 y = 6.6537e+06 y = 6.6628e+06 y = 6.6720e+06 y = 6.6812e+06 y = 6.6903e+06 y = 6.6995e+06 y = 6.7087e+06 y = 6.7179e+06 y = 6.7270e+06 y = 6.7362e+06 y = 6.7455e+06 y = 6.7547e+06 y = 6.7639e+06 y = 6.7731e+06 y = 6.7823e+06 y = 6.7916e+06 y = 6.8008e+06 y = 6.8101e+06 y = 6.8193e+06 y = 6.8286e+06 y = 6.8378e+06 y = ...

Assertion failed.