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

1 visualizzazione (ultimi 30 giorni)
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 Commento
Shlomo Geva
Shlomo Geva il 20 Nov 2020
Modificato: Shlomo Geva il 20 Nov 2020
And how does this solution, size 8, appear as a correct solution on Cody?
function ans = fileread(varargin)
‘’
end

Accedi per commentare.

Risposta accettata

Dyuman Joshi
Dyuman Joshi il 26 Mag 2021
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)

Più risposte (0)

Categorie

Scopri di più su Strategy & Logic in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by