Cody

Solution 1907036

Submitted on 21 Aug 2019 at 6:24
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
x = 1000; y_correct = 31875000; assert(isequal(euler009(x),y_correct))

a = 500000 b = 500000 y = 5.0000e+11

Assertion failed.

2   Fail
x = 2000; y_correct = 255000000; assert(isequal(euler009(x),y_correct))

a = 2000000 b = 2000000 y = 8.0000e+12

Assertion failed.

3   Fail
x = 320; y_correct = 1044480; assert(isequal(euler009(x),y_correct))

a = 51200 b = 51200 y = 5.2430e+09

Assertion failed.

4   Fail
x = 5000; y_correct = 3984375000 assert(isequal(euler009(x),y_correct))

y_correct = 3.9844e+09 a = 12500000 b = 12500000 y = 3.1250e+14

Assertion failed.