Cody

Solution 1980843

Submitted on 17 Oct 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
assert(isequal(right_triangle_sides(240),{ [15 112 113] [40 96 104] [48 90 102] [60 80 100] }))

upperLim = 112 ans = 15 112 113 ans = 40 96 104 ans = 48 90 102 ans = 60 80 100 ans = 80 60 100 ans = 90 48 102 ans = 96 40 104 ans = 112 15 113

Assertion failed.

2   Fail
assert(isequal(right_triangle_sides(240),{ [15 112 113] [40 96 104] [48 90 102] [60 80 100] }))

upperLim = 112 ans = 15 112 113 ans = 40 96 104 ans = 48 90 102 ans = 60 80 100 ans = 80 60 100 ans = 90 48 102 ans = 96 40 104 ans = 112 15 113

Assertion failed.

3   Fail
assert(isequal(right_triangle_sides(418),{ [57 176 185] }))

upperLim = 176 ans = 57 176 185 ans = 176 57 185

Assertion failed.

4   Fail
assert(isequal(right_triangle_sides(490),{ [140 147 203] }))

upperLim = 147 ans = 140 147 203 ans = 147 140 203

Assertion failed.

5   Fail
assert(isequal(right_triangle_sides(112),{ [14 48 50] }))

upperLim = 48 ans = 14 48 50 ans = 48 14 50

Assertion failed.

6   Fail
assert(isequal(right_triangle_sides(390),{ [52 165 173] [65 156 169] }))

upperLim = 165 ans = 52 165 173 ans = 65 156 169 ans = 156 65 169 ans = 165 52 173

Assertion failed.

7   Fail
assert(isequal(right_triangle_sides(132),{ [11 60 61] [33 44 55] }))

upperLim = 60 ans = 11 60 61 ans = 33 44 55 ans = 44 33 55 ans = 60 11 61

Assertion failed.

8   Fail
assert(isequal(right_triangle_sides(576),{ [64 252 260] [144 192 240] }))

upperLim = 252 ans = 64 252 260 ans = 144 192 240 ans = 192 144 240 ans = 252 64 260

Assertion failed.

9   Fail
assert(isequal(right_triangle_sides(60),{ [10 24 26] [15 20 25] }))

upperLim = 24 ans = 10 24 26 ans = 15 20 25 ans = 20 15 25 ans = 24 10 26

Assertion failed.

10   Fail
assert(isequal(right_triangle_sides(650),{ [25 312 313] }))

upperLim = 312 ans = 25 312 313 ans = 312 25 313

Assertion failed.

11   Fail
assert(isequal(right_triangle_sides(732),{ [183 244 305] }))

upperLim = 244 ans = 183 244 305 ans = 244 183 305

Assertion failed.

12   Fail
assert(isequal(right_triangle_sides(648),{ [162 216 270] }))

upperLim = 216 ans = 162 216 270 ans = 216 162 270

Assertion failed.

13   Fail
assert(isequal(right_triangle_sides(930),{ [155 372 403] }))

upperLim = 372 ans = 155 372 403 ans = 372 155 403

Assertion failed.

14   Fail
assert(isequal(right_triangle_sides(876),{ [219 292 365] }))

upperLim = 292 ans = 219 292 365 ans = 292 219 365

Assertion failed.

15   Fail
assert(isequal(right_triangle_sides(588),{ [84 245 259] [147 196 245] }))

upperLim = 245 ans = 84 245 259 ans = 147 196 245 ans = 196 147 245 ans = 245 84 259

Assertion failed.

16   Fail
assert(isequal(right_triangle_sides(208),{ [39 80 89] }))

upperLim = 80 ans = 39 80 89 ans = 80 39 89

Assertion failed.

17   Fail
assert(isequal(right_triangle_sides(228),{ [57 76 95] }))

upperLim = 76 ans = 57 76 95 ans = 76 57 95

Assertion failed.

18   Fail
assert(isequal(right_triangle_sides(312),{ [24 143 145] [78 104 130] }))

upperLim = 143 ans = 24 143 145 ans = 78 104 130 ans = 104 78 130 ans = 143 24 145

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] }))

upperLim = 440 ans = 42 440 442 ans = 77 420 427 ans = 132 385 407 ans = 198 336 390 ans = 231 308 385 ans = 308 231 385 ans = 336 198 390 ans = 385 132 407 ans = 420 77 427 ans = 440 42 442

Assertion failed.

20   Fail
assert(isequal(right_triangle_sides(980),{ [280 294 406] }))

upperLim = 294 ans = 280 294 406 ans = 294 280 406

Assertion failed.

21   Fail
assert(isequal(right_triangle_sides(112),{ [14 48 50] }))

upperLim = 48 ans = 14 48 50 ans = 48 14 50

Assertion failed.

22   Fail
assert(isequal(right_triangle_sides(30),{ [5 12 13] }))

upperLim = 12 ans = 5 12 13 ans = 12 5 13

Assertion failed.

23   Fail
assert(isequal(right_triangle_sides(680),{ [102 280 298] [136 255 289] }))

upperLim = 280 ans = 102 280 298 ans = 136 255 289 ans = 255 136 289 ans = 280 102 298

Assertion failed.

24   Fail
assert(isequal(right_triangle_sides(396),{ [33 180 183] [72 154 170] [99 132 165] }))

upperLim = 180 ans = 33 180 183 ans = 72 154 170 ans = 99 132 165 ans = 132 99 165 ans = 154 72 170 ans = 180 33 183

Assertion failed.

25   Fail
assert(isequal(right_triangle_sides(988),{ [266 312 410] }))

upperLim = 312 ans = 266 312 410 ans = 312 266 410

Assertion failed.