Problem 803. Twist 'n' Match
Solution Stats
Problem Comments
-
6 Comments
许多解决方案不适用万博 尤文图斯于n = 5和m = 0
一点也不...
对于n-n-n矩阵,如果n为奇数,则为m = 1。
ur problems are really interesting
Thanks Asif!
This problem has some issues because some pairs (n,m) do not have a solution. For instance, it is impossible to find a matrix such that m = n^2 -1 since a rotation pivot does not move. Moreover, there are floor((n^2)/4) cycles of numbers, and when we match the cycle beginning with its end, it creates two matches. It is possible to do some manipulations to have an m greater than n^2 - floor((n^2)/4), but not always.
can you give an example of a matrix before and after?
Solution Comments
-
1 Comment
我提到的一些情况下,我的代码失败了。当前的领先解决方案做得更好(找到我的代码无法找到的一些解决方案),但有时它会进入无限循环。万博 尤文图斯
-
1 Comment
i had no idea this was gonna work :p
Problem Recent Solvers63
Suggested Problems
1441求解器
Project Euler: Problem 5, Smallest multiple
863求解器
解决523
Golomb's self-describing sequence (based on Euler 341)
124个求解器
2037 Solvers
来自作者的更多50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
开始狩猎!