Please add more tests, otherwise the problem is trivially solvable.
The solution isn't unique - it could be anything between 0 and 12.5. Need to specify that only integer side lengths are allowed (even then there could be multiple solutions). Also more test cases are required.
This problem is problematic.
did not get this problem...
It is'nt always true! E.e. whether a quadrat's diagonal is 5 it's sides are 5/sqrt(2)! And the area will be 12.5!!
Project Euler: Problem 6, Natural numbers, squares and sums.
1053 Solvers
Find the sum of the elements in the "second" diagonal
1006 Solvers
553 Solvers
428 Solvers
Matlab Basics II - Max & Index of Max
192 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!