Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
assert(isequal(right_triangle_sides(240),{ [15 112 113] [40 96 104] [48 90 102] [60 80 100] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
15 112 113
x =
2
k =
15 112 113
40 96 104
x =
3
k =
15 112 113
40 96 104
48 90 102
x =
4
k =
15 112 113
40 96 104
48 90 102
60 80 100
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
c =
1×3 cell array
{1×3 double} {1×3 double} {1×3 double}
c =
1×4 cell array
{1×3 double} {1×3 double} {1×3 double} {1×3 double}
|
2 | Pass |
assert(isequal(right_triangle_sides(240),{ [15 112 113] [40 96 104] [48 90 102] [60 80 100] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
15 112 113
x =
2
k =
15 112 113
40 96 104
x =
3
k =
15 112 113
40 96 104
48 90 102
x =
4
k =
15 112 113
40 96 104
48 90 102
60 80 100
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
c =
1×3 cell array
{1×3 double} {1×3 double} {1×3 double}
c =
1×4 cell array
{1×3 double} {1×3 double} {1×3 double} {1×3 double}
|
3 | Pass |
assert(isequal(right_triangle_sides(418),{ [57 176 185] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
57 176 185
c =
1×1 cell array
{1×3 double}
|
4 | Pass |
assert(isequal(right_triangle_sides(490),{ [140 147 203] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
140 147 203
c =
1×1 cell array
{1×3 double}
|
5 | Pass |
assert(isequal(right_triangle_sides(112),{ [14 48 50] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
14 48 50
c =
1×1 cell array
{1×3 double}
|
6 | Pass |
assert(isequal(right_triangle_sides(390),{ [52 165 173] [65 156 169] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
52 165 173
x =
2
k =
52 165 173
65 156 169
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
|
7 | Pass |
assert(isequal(right_triangle_sides(132),{ [11 60 61] [33 44 55] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
11 60 61
x =
2
k =
11 60 61
33 44 55
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
|
8 | Pass |
assert(isequal(right_triangle_sides(576),{ [64 252 260] [144 192 240] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
64 252 260
x =
2
k =
64 252 260
144 192 240
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
|
9 | Pass |
assert(isequal(right_triangle_sides(60),{ [10 24 26] [15 20 25] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
10 24 26
x =
2
k =
10 24 26
15 20 25
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
|
10 | Pass |
assert(isequal(right_triangle_sides(650),{ [25 312 313] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
25 312 313
c =
1×1 cell array
{1×3 double}
|
11 | Pass |
assert(isequal(right_triangle_sides(732),{ [183 244 305] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
183 244 305
c =
1×1 cell array
{1×3 double}
|
12 | Pass |
assert(isequal(right_triangle_sides(648),{ [162 216 270] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
162 216 270
c =
1×1 cell array
{1×3 double}
|
13 | Pass |
assert(isequal(right_triangle_sides(930),{ [155 372 403] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
155 372 403
c =
1×1 cell array
{1×3 double}
|
14 | Pass |
assert(isequal(right_triangle_sides(876),{ [219 292 365] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
219 292 365
c =
1×1 cell array
{1×3 double}
|
15 | Pass |
assert(isequal(right_triangle_sides(588),{ [84 245 259] [147 196 245] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
84 245 259
x =
2
k =
84 245 259
147 196 245
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
|
16 | Pass |
assert(isequal(right_triangle_sides(208),{ [39 80 89] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
39 80 89
c =
1×1 cell array
{1×3 double}
|
17 | Pass |
assert(isequal(right_triangle_sides(228),{ [57 76 95] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
57 76 95
c =
1×1 cell array
{1×3 double}
|
18 | Pass |
assert(isequal(right_triangle_sides(312),{ [24 143 145] [78 104 130] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
24 143 145
x =
2
k =
24 143 145
78 104 130
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
|
19 | Pass |
assert(isequal(right_triangle_sides(924),{ [42 440 442] [77 420 427] [132 385 407] [198 336 390] [231 308 385] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
42 440 442
x =
2
k =
42 440 442
77 420 427
x =
3
k =
42 440 442
77 420 427
132 385 407
x =
4
k =
42 440 442
77 420 427
132 385 407
198 336 390
x =
5
k =
42 440 442
77 420 427
132 385 407
198 336 390
231 308 385
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
c =
1×3 cell array
{1×3 double} {1×3 double} {1×3 double}
c =
1×4 cell array
{1×3 double} {1×3 double} {1×3 double} {1×3 double}
c =
1×5 cell array
{1×3 double} {1×3 double} {1×3 double} {1×3 double} {1×3 double}
|
20 | Pass |
assert(isequal(right_triangle_sides(980),{ [280 294 406] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
280 294 406
c =
1×1 cell array
{1×3 double}
|
21 | Pass |
assert(isequal(right_triangle_sides(112),{ [14 48 50] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
14 48 50
c =
1×1 cell array
{1×3 double}
|
22 | Pass |
assert(isequal(right_triangle_sides(30),{ [5 12 13] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
5 12 13
c =
1×1 cell array
{1×3 double}
|
23 | Pass |
assert(isequal(right_triangle_sides(680),{ [102 280 298] [136 255 289] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
102 280 298
x =
2
k =
102 280 298
136 255 289
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
|
24 | Pass |
assert(isequal(right_triangle_sides(396),{ [33 180 183] [72 154 170] [99 132 165] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
33 180 183
x =
2
k =
33 180 183
72 154 170
x =
3
k =
33 180 183
72 154 170
99 132 165
c =
1×1 cell array
{1×3 double}
c =
1×2 cell array
{1×3 double} {1×3 double}
c =
1×3 cell array
{1×3 double} {1×3 double} {1×3 double}
|
25 | Pass |
assert(isequal(right_triangle_sides(988),{ [266 312 410] }))
c =
0×0 empty cell array
k =
[]
x =
0
x =
1
k =
266 312 410
c =
1×1 cell array
{1×3 double}
|
Find the sum of the elements in the "second" diagonal
880 Solvers
307 Solvers
690 Solvers
1234 Solvers
345 Solvers