Cody

Solution 267506

Submitted on 26 Jun 2013
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(right_triangle_sides(240),{ [15 112 113] [40 96 104] [48 90 102] [60 80 100] }))
Error: Assertion failed.
2   Fail
%% assert(isequal(right_triangle_sides(240),{ [15 112 113] [40 96 104] [48 90 102] [60 80 100] }))
Error: Assertion failed.
3   Pass
%% assert(isequal(right_triangle_sides(418),{ [57 176 185] }))
v = 57 176 185 v = 57 176 185 176 57 185 v = 57 176 185 ans = [1x3 double]
4   Pass
%% assert(isequal(right_triangle_sides(490),{ [140 147 203] }))
v = 140 147 203 v = 140 147 203 147 140 203 v = 140 147 203 ans = [1x3 double]
5   Pass
%% assert(isequal(right_triangle_sides(112),{ [14 48 50] }))
v = 14 48 50 v = 14 48 50 48 14 50 v = 14 48 50 ans = [1x3 double]
6   Fail
%% assert(isequal(right_triangle_sides(390),{ [52 165 173] [65 156 169] }))
Error: Assertion failed.
7   Fail
%% assert(isequal(right_triangle_sides(132),{ [11 60 61] [33 44 55] }))
Error: Assertion failed.
8   Fail
%% assert(isequal(right_triangle_sides(576),{ [64 252 260] [144 192 240] }))
Error: Assertion failed.
9   Fail
%% assert(isequal(right_triangle_sides(60),{ [10 24 26] [15 20 25] }))
Error: Assertion failed.
10   Pass
%% assert(isequal(right_triangle_sides(650),{ [25 312 313] }))
v = 25 312 313 v = 25 312 313 312 25 313 v = 25 312 313 ans = [1x3 double]
11   Pass
%% assert(isequal(right_triangle_sides(732),{ [183 244 305] }))
v = 183 244 305 v = 183 244 305 244 183 305 v = 183 244 305 ans = [1x3 double]
12   Pass
%% assert(isequal(right_triangle_sides(648),{ [162 216 270] }))
v = 162 216 270 v = 162 216 270 216 162 270 v = 162 216 270 ans = [1x3 double]
13   Pass
%% assert(isequal(right_triangle_sides(930),{ [155 372 403] }))
v = 155 372 403 v = 155 372 403 372 155 403 v = 155 372 403 ans = [1x3 double]
14   Pass
%% assert(isequal(right_triangle_sides(876),{ [219 292 365] }))
v = 219 292 365 v = 219 292 365 292 219 365 v = 219 292 365 ans = [1x3 double]
15   Fail
%% assert(isequal(right_triangle_sides(588),{ [84 245 259] [147 196 245] }))
Error: Assertion failed.
16   Pass
%% assert(isequal(right_triangle_sides(208),{ [39 80 89] }))
v = 39 80 89 v = 39 80 89 80 39 89 v = 39 80 89 ans = [1x3 double]
17   Pass
%% assert(isequal(right_triangle_sides(228),{ [57 76 95] }))
v = 57 76 95 v = 57 76 95 76 57 95 v = 57 76 95 ans = [1x3 double]
18   Fail
%% assert(isequal(right_triangle_sides(312),{ [24 143 145] [78 104 130] }))
Error: Assertion failed.
19   Fail
%% assert(isequal(right_triangle_sides(924),{ [42 440 442] [77 420 427] [132 385 407] [198 336 390] [231 308 385] }))
Error: Assertion failed.
20   Pass
%% assert(isequal(right_triangle_sides(980),{ [280 294 406] }))
v = 280 294 406 v = 280 294 406 294 280 406 v = 280 294 406 ans = [1x3 double]
21   Pass
%% assert(isequal(right_triangle_sides(112),{ [14 48 50] }))
v = 14 48 50 v = 14 48 50 48 14 50 v = 14 48 50 ans = [1x3 double]
22   Pass
%% assert(isequal(right_triangle_sides(30),{ [5 12 13] }))
v = 5 12 13 v = 5 12 13 12 5 13 v = 5 12 13 ans = [1x3 double]
23   Fail
%% assert(isequal(right_triangle_sides(680),{ [102 280 298] [136 255 289] }))
Error: Assertion failed.
24   Fail
%% assert(isequal(right_triangle_sides(396),{ [33 180 183] [72 154 170] [99 132 165] }))
Error: Assertion failed.
25   Pass
%% assert(isequal(right_triangle_sides(988),{ [266 312 410] }))
v = 266 312 410 v = 266 312 410 312 266 410 v = 266 312 410 ans = [1x3 double]