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

Shlomo Geva 2020년 11월 20일
최근 활동 Dyuman Joshi답글: 2021년 5월 26일

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
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)
Shlomo Geva
Shlomo Geva 2020년 11월 20일
And how does this solution, size 8, appear as a correct solution on Cody?
function ans = fileread(varargin)
‘’
end