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

2 vues (au cours des 30 derniers jours)
Shlomo Geva
Shlomo Geva le 20 Nov 2020
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 commentaire
Shlomo Geva
Shlomo Geva le 20 Nov 2020
Modifié(e) : Shlomo Geva le 20 Nov 2020
And how does this solution, size 8, appear as a correct solution on Cody?
function ans = fileread(varargin)
‘’
end

Connectez-vous pour commenter.

Réponse acceptée

Dyuman Joshi
Dyuman Joshi le 26 Mai 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)

Plus de réponses (0)

Catégories

En savoir plus sur Strategy & Logic dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by