57
14
Input must not be required, and output must read "All your base are belong to us
".
Restrictions
No external resources.
Plus a minimum of two of the following:
You cannot use "a", "b", "t", "u", or "y" in any case in your code (bonus -10 to your golf score if you can do this)
You cannot use "l", "o", "s", "e", or "r" in any case in your code (bonus -20 to your golf score if you can do this)
You cannot use "n", "g", "0", "1", or "2" in any case in your code (bonus -30 to your golf score if you can do this)
So for example, if you manage to get the code done with 40 characters and use rules 1 and 2, your golf score is 40 - 10 - 20 = 10 chars.
Smallest code golf score wins... Good luck!
5So much as declaring a
string
breaks all three restrictions, andchar
,var
andWrite
break two of them each. This is going to be tough to get valid answers, bar maybe Barinfuck. – Hand-E-Food – 2014-01-23T02:28:20.287Very difficult in python.
print
breaks all three. Maybe with some creativeeval
, but then you have to meet 1 and 3. – None – 2014-01-23T02:37:45.927Ok, I'm convinced a Python entry is impossible. – None – 2014-01-23T03:29:09.183
7"no input required". Doesn't that mean that I could, for example, do something like
print(input())
(python)? The user would be required to input the correct string, but that isn't forbidden. – Justin – 2014-01-23T06:40:06.267I'm pretty sure a Python entry is possible with
exec
and clever use of hex escapes. – user2357112 supports Monica – 2014-01-23T06:54:58.207As far as I can figure out an entry in C would only be able to output with
putc
since it only violates one of the rules, all other output functions I can imagine right now violate two of the rules. But.putc
will have to havestderr
orstdout
as the second argument violating two rules anyway. Correct me if I missed some way to output or acquire stdout (write, printf, putchar, send (if it worked at all which it probably doesn't), fdopen). – Art – 2014-01-23T11:03:12.500@user2357112 hard to avoid 0, 1, and 2 with hex escapes, and
exec
contains thee
already. – gerrit – 2014-01-23T12:08:54.733@Art I don't have a computer nearby atm, but I believe stdin/out/err have values 0, 1, 2 respectively, so you can simply hardcode them. – FireFly – 2014-01-23T13:04:35.810
@Art C is out anyway since you need
main
. – quasimodo – 2014-01-23T13:07:49.623@quasimodo Doh. Of course, that's even more obvious. No point to research esoteric I/O functions when the entry point itself is impossible to write. – Art – 2014-01-23T13:42:45.170
Looks like
POGAACK
is out of the question... – Timtech – 2014-01-23T14:15:16.893@gerrit: You can get them into a hex escape with backticks around arithmetic. It just requires another layer of
exec
. – user2357112 supports Monica – 2014-01-23T15:37:58.203@user2357112 backticks are an unconditional SyntaxError in Python3. They're deprecated (but valid) in Python2. – gerrit – 2014-01-23T15:41:52.087
I think any input used should be subject to the same rules, and count as characters in the score. It doesn't look like some answers are doing that. – Gerrat – 2014-01-23T17:12:17.587
5@Quincunx I wouldn't accept such a solution, as the code is not guaranteed to output a correct solution. Also,
stdin
is arguably an "external source". – nitro2k01 – 2014-01-23T18:39:04.9932@PranavHosangadi There is a deleted answer to this question with a score of -6 which is essentially the same as that. It's been done before a number of times in various questions and is explicitly disallowed in the [tag:code-golf] tag. – Gareth – 2014-01-24T10:31:16.543
1According to code-golf standard rules answers in latin1/unicode/name you charmap is rated in bytes after conversion to utf-8. Are we to count like that or have you chosen a different score method? Current leader would then be at 0 instead of -40. – Sylwester – 2014-01-30T01:27:18.990
@PranavHosangadi Technically anyone can "create" a custom language that takes a single command, arbitrarily called
z
or something, and the result is the desired output... We don't do that sort of thing here... – WallyWest – 2014-01-30T04:48:28.267