Strange "correct" solution to Cody Problem 58. Tic Tac Toe FTW

1 次查看(过去 30 天)
I see this solution on the Cody solutions list. Solution 1949216
I am puzzled as to how this could possibly be rated as correct (size 48)
(BTW - I am pretty sure I saw this, or similar, before.)
function ans = fileread(varargin)
' ';
a=1;
b=3;
a=1;
b=3;a=1;
b=3;a=1;
b=3;a=1;
b=3; end
  1 个评论
Shlomo Geva
Shlomo Geva 2020-11-20
编辑:Shlomo Geva 2020-11-20
And how does this solution, size 8, appear as a correct solution on Cody?
function ans = fileread(varargin)
‘’
end

请先登录,再进行评论。

采纳的回答

Dyuman Joshi
Dyuman Joshi 2021-5-26
There are some users who do not attempt to solve a problem, but have instead have found a hack the solver to create a so called "best" solution. Ignore these.
Cody admins and mods are trying to make sure that such cheats are no longer allowed and the ones that are already been implemented are no longer valid. You can check and see the solution you mentioned in your question and see that it is no longer an accepted or a valid answer.
See related posts -
A very common hack, which is now not usable
Using regexp
A general discussion (includes comments from Cody and MATLAB Central advisors)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Strategy & Logic 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by