General > General Technical Chat
The gurus never took an EE course.
<< < (8/8)
james_s:

--- Quote from: ataradov on August 29, 2022, 10:11:28 pm ---In school I participated in a programming olympiad and for one of the problems a program needed to output "yes" or "no" for a given set of inputs. I did not have time to properly solve the problem, so I just printed "yes" for any inputs and got some extra points for free. According to the rules, the code was only looked at if there is a draw, and it never came to it.

--- End quote ---

LOL

Faced with that same situation I probably would have found the simplest thing to test for and printed out yes when that was true, and then for anything else randomly choose either yes or no.
Navigation
Message Index
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod