Cody

# Problem 1330. James Bond film count

Solution 1814042

Submitted on 13 May 2019
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
y=2020; n=bondcount(y); assert(isequal(round(n),27))

Undefined function or variable 'p'. Error in bondcount (line 4) n(i) = A(i)*(y-1961)^p Error in Test1 (line 2) n=bondcount(y);

2   Fail
y=2100; n=bondcount(y); assert(isequal(round(n),52))

Undefined function or variable 'p'. Error in bondcount (line 4) n(i) = A(i)*(y-1961)^p Error in Test2 (line 2) n=bondcount(y);

3   Fail
y=2289; n=bondcount(y); assert(isequal(round(n),100))

Undefined function or variable 'p'. Error in bondcount (line 4) n(i) = A(i)*(y-1961)^p Error in Test3 (line 2) n=bondcount(y);

4   Fail
y=4661; n=bondcount(y); assert(isequal(round(n),500))

Undefined function or variable 'p'. Error in bondcount (line 4) n(i) = A(i)*(y-1961)^p Error in Test4 (line 2) n=bondcount(y);