what the matter,such an easy problem prevent me from continuing solving the following problems,so why,l can't accept the format of the solver function,it is so stupid,it is not flexible,l can't stand
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
n = 1;
ans_correct = true;
assert(isequal(is_it_odd(n),ans_correct))
Error: Assertion failed.
|
2 | Pass |
%%
n = 2;
ans_correct = false;
assert(isequal(is_it_odd(n),ans_correct))
tf =
0
|
3 | Pass |
%%
n = 28;
ans_correct = false;
assert(isequal(is_it_odd(n),ans_correct))
tf =
0
|
4 | Fail |
%%
n = 453;
ans_correct = true;
assert(isequal(is_it_odd(n),ans_correct))
Error: Assertion failed.
|
5 | Fail |
%%
n = 17;
ans_correct = true;
assert(isequal(is_it_odd(n),ans_correct))
Error: Assertion failed.
|
6 | Pass |
%%
n = 16;
ans_correct = false;
assert(isequal(is_it_odd(n),ans_correct))
tf =
0
|
2401 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1491 Solvers
462 Solvers
2455 Solvers
1159 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!