Problem 1774. Free passes for everyone!
Simply return the name of the coolest numerical computation software ever
Extra reward (get a freepass):
Once a month, as an additional reward for solving this problem, you may get a temporary freepass to solve any other Cody problem. To use this freepass follow these steps:
- First, at the beginning of a new month, solve this problem correctly
- Then immediately visit the Cody problem that you wish to solve, click 'Solve this now', and enter within the function body of your solution the line:
freepass.please;
and Cody may accept that solution as correct.
You will typically need to repeat step (2) above multiple times until Cody does accept your solution as correct. If you are getting an error message saying Undefined variable "freepass" or class "freepass.please" simply continue repeating step 2 until you pass the problem and get a message saying freepass granted, congratulations!.
Fineprint:
1) For each Cody player, this problem will grant a new freepass per day until one is successfully used to pass a different Cody problem. Once this happens this problem will only grant the same Cody player a new freepass the next Calendar month.
2) How many times do I need to submit a freepass.please solution to a different Cody problem for it to pass? Short answer: around 10, but perhaps as many as 30 times (your faith may be tested, but perseverance will be rewarded at the end :)
Long answer: at any given time, Cody has many servers running players' solutions (perhaps around 20 servers?). Every time that you solve this problem a freepass is issued only for the particular server where your solution was evaluated. When you run a freepass.please solution, if that solution is run in the same server where a freepass was issued your solution will pass, otherwise you will get an "_undefined variable freepass_" error. So in order for your solution to pass you simply need to keep resubmitting it until you finally hit the same server where your freepass-problem solution was originally evaluated. Also note that, from time to time, Cody will close a server and start a new one. If that happens any freepass stored in that server will be lost (and you will need to try again steps 1 and 2 above next day)
3) Your correct solution will get a score of 100 (this is typically high enough so that we do not troll the score lead with these freepasses)
4) Feel free to explore this problem testsuite to see how this works, but please respect some basic courtesy guidelines if you decide to implement your own (e.g. the service does not interfere with the normal Cody operation; it cleans up after itself; don't use it to get a leading score; etc.) Comments and suggestions for improvement are appreciated!
5) This freepass service is 'likeware'. Please 'like' this problem if you liked the code or enjoy using your freepasses :)
Solution Stats
Problem Comments
-
21 Comments
Alfonso, it is incredibly clever and ingenious!!!
Thanks!
Amazing, it works. Very Clever.
Finally! I can now beat the cody problem that wants me to play on the weekend. Smart and subversive. My new favorite cody problem.
nice!
If I had read 3) more carefully, I would not have used to solve the Rubik's Cube problem like I did. My apologies.
Nice!
Freepass functionality has not been working for the past few weeks due to a change in the underlying Cody machinery. The fix to get freepasses working again is very simple but I am hesitant whether I should take this change in Cody machinery as a sign from above and let this problem quietly expire. If you believe freepasses are useful please let me know in the comments, and if you believe they interfere too much with the normal Cody balance and I should let this functionality expire please let me know as well. Other thoughts/suggestions are also welcome (I could implement a maximum number of freepasses per user per week, for example, if that would help avoid abuses)
I would prefer that it be kept up, if possible, with a limiter, like you mentioned, of one or two per user per week. The reasoning is there are many problems on Cody which can no longer be solved (some older ones, due to Matlab or Cody upgrades) or which were never solvable without hacking due to poorly written test suites. Since these problems typically aren't removed from Cody, newer players shouldn't be handicapped by never being able to solve all posted problems.
Can you get this working on the Simulink problems? :-)
just an update: it would seem that Cody has now perhaps between 30 and 50 nodes/servers instead of the old ~5 nodes running Cody solutions. This just means that you need more patience/persistence to get a freepass. The recommended "optimal" balance would now be to send ~7 correct solutions to this problem, and then submit freepass.please solutions to your secondary problem until you hit the right server and get a passing grade (on average you would need another ~7 freepass.please submissions until you hit the right server). I will update this post if I get a better estimate on the actual number of servers running cody solutions
Cody has had some improvements recently, and it appears that this no longer works. The function will sometimes return successfully, but I can't get more than four in a row. The error description is: "No public property version exists for class cody.verifyCode." Is this problem now dead, or can it be revived, perhaps with a maximum per user per time period as mentioned in other comments here?
And, better yet, I now get that cody.verifyCode class error randomly when trying to solve other problems.
Hi Grant. Many users reported cody.verifyCode problems in comments. In the last couple of days I've got it about 10% of the submissions. I guess it's independent from free pass problem.
@Grant/Jan. This could still be related so just to play it safe I am temporally taking this problem down until I can have it fixed/updated
does this hack still work?
Nice one
.
lol
this problem is working again
This problem no longer works. Not sure why though.
Cody no longer allows freepass.please as a solution.
Solution Comments
Show commentsProblem Recent Solvers737
Suggested Problems
-
1242 Solvers
-
478 Solvers
-
Implement simple rotation cypher
1065 Solvers
-
518 Solvers
-
536 Solvers
More from this Author38
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!