My C++ class has some hidden tests for each project for which we don't get to see input or output. How might I get around this? I've already tried just sticking stuff in a file; anything I can modify gets reset each run. /bin contains no ssh or ftp, though there's a fair bit of other stuff there. Any other ideas?
Anonymous
@Khuldraesethna'Barya Do it right and don't try to cheat?
Description
Imaginary programming language (IPL) uses Polish Reverse Notation. It has the following commands:
i -- input number and push it to the stack
o -- non-destructive output top of the stack (number stays on the stack)
d -- discard top of stack
integer number -- push this number to the...
Since it involves both addition and multiplication, the hardest part is figuring out which direction to apply distributive laws such that the token count is minimized.
But in the meantime, I have a partial solution that can simplify "4 i 5 + i o d 6 o" to "i i o 6 o"
MisterGeeky's query to list challenges:
It is up to you whether you interpret these challenges as following a pattern.
Challenge 1:- Given an array of random numbers and a target number, sample pairs in the array whose sum is closest to the target. Minimize the error function.
Challenge 1.5:- ...
Write a program or function that, when given a string, filters out as many distinct bytes as it can and returns the cleaned string. However, since your program hates them, none of these bytes can be present in your own code.
Your score will be the number of distinct bytes your program filters ou...
Arrays start at π
(WIP)
code-golf array interpolation
< Meme goes here >
Your task is to take an array of numbers and a real number and return the value at that point in the array. Arrays start at π and are counted in π intervals. Thing is, we're actually going to interpolate between elemen...
"You cast 'Identify' on the staff, and get an unusual response: "You do not have the necessary permissions to perform this action. Please contact your Spellframe Administrator"" — Chronocidal6 hours ago
.{14}security.{15}
[^s]{3}s [^s]{6}s[^s] s[^s]{12}s [^s]{8}
def
^It'..[ywkni][klmop][zwta]
ce.$
jus
[^f]*fenc
y, it's
t ...t
Give your answer.
Also - we like to write secure and maintainable software. In that context, when might regular expressions be a good thing, and when might they be a bad t...