Eww, those bytes are grossFewest (distinct) characters for Turing CompletenessTips for golfing in...
Can you determine if focus is sharp without diopter adjustment if your sight is imperfect?
Critique vs nitpicking
Is it really OK to use "because of"?
How to not let the Identify spell spoil everything?
What is the draw frequency for 3 consecutive games (same players; amateur level)?
How to deal with an underperforming subordinate?
Icon at Subject-line scrlttr2
Eww, those bytes are gross
How do I avoid the "chosen hero" feeling?
A fantasy book with seven white haired women on the cover
What species should be used for storage of human minds?
I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."
How to politely refuse in-office gym instructor for steroids and protein
How vim overwrites readonly mode?
Renting a 2CV in France
Count repetitions of an array
Concatenating two int[]
Are all power cords made equal?
Modern Algebraic Geometry and Analytic Number Theory
Possible issue with my W4 and tax return
How much light is too much?
Is there a non-trivial covering of the Klein bottle by the Klein bottle?
How can I prevent an oracle who can see into the past from knowing everything that has happened?
Case protection with emphasis in biblatex
Eww, those bytes are gross
Fewest (distinct) characters for Turing CompletenessTips for golfing in 05AB1Ecrossed out 44 is still regular 44 ;(Recognize handwritten digitsBrainf*** subprograms with unique outputsStop Internet Warming!Exit Code GolfingThis is the sort of challenge that bytesShifting-Oriented ProgrammingWrite a Quine SuiteLucas and Fibonacci are in pairMake a longer lenguage programWrite the longest period iterating quine bounded by 500 bytes
$begingroup$
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 out from the input, with the higher the better. This is a max score of 255 (since your program has to be a minimum of one byte). The tiebreaker is the length of your code, with lower being better.
For example, if your program filters out the bytes 0123456789, it receives a score of 10, but your program itself cannot contain these bytes.
Rules
- Bytes mean octal bytes.
- You also have the option to take input as a list of integers, with values ranging from 0 to 255. These correspond to the equivalent bytes.
- Your output should be in the same form as your input
- No reading your source code
- Your code must be non-empty
- Yes, I know there's going to be a Lenguage/Unary answer. But at least golf it please?
;)
code-challenge restricted-source self-referential
$endgroup$
add a comment |
$begingroup$
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 out from the input, with the higher the better. This is a max score of 255 (since your program has to be a minimum of one byte). The tiebreaker is the length of your code, with lower being better.
For example, if your program filters out the bytes 0123456789, it receives a score of 10, but your program itself cannot contain these bytes.
Rules
- Bytes mean octal bytes.
- You also have the option to take input as a list of integers, with values ranging from 0 to 255. These correspond to the equivalent bytes.
- Your output should be in the same form as your input
- No reading your source code
- Your code must be non-empty
- Yes, I know there's going to be a Lenguage/Unary answer. But at least golf it please?
;)
code-challenge restricted-source self-referential
$endgroup$
$begingroup$
If the code accepts a Unicode string must we filter byte-by-byte - for example if the current highest voted entry (Japt by Luis felipe De jesus Munoz) entry is fed "Ŧ" (U+0166) should it yield "f" (U+0066)? Or is there a guarantee that we only receive the first 256 Unicode characters in the input?
$endgroup$
– Jonathan Allan
1 hour ago
$begingroup$
Is it OK if the function doesn't work if the string contains null bytes ()? As C uses null terminated strings, a function cannot know whether it's the end of the string or just a null byte.
$endgroup$
– wastl
20 mins ago
add a comment |
$begingroup$
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 out from the input, with the higher the better. This is a max score of 255 (since your program has to be a minimum of one byte). The tiebreaker is the length of your code, with lower being better.
For example, if your program filters out the bytes 0123456789, it receives a score of 10, but your program itself cannot contain these bytes.
Rules
- Bytes mean octal bytes.
- You also have the option to take input as a list of integers, with values ranging from 0 to 255. These correspond to the equivalent bytes.
- Your output should be in the same form as your input
- No reading your source code
- Your code must be non-empty
- Yes, I know there's going to be a Lenguage/Unary answer. But at least golf it please?
;)
code-challenge restricted-source self-referential
$endgroup$
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 out from the input, with the higher the better. This is a max score of 255 (since your program has to be a minimum of one byte). The tiebreaker is the length of your code, with lower being better.
For example, if your program filters out the bytes 0123456789, it receives a score of 10, but your program itself cannot contain these bytes.
Rules
- Bytes mean octal bytes.
- You also have the option to take input as a list of integers, with values ranging from 0 to 255. These correspond to the equivalent bytes.
- Your output should be in the same form as your input
- No reading your source code
- Your code must be non-empty
- Yes, I know there's going to be a Lenguage/Unary answer. But at least golf it please?
;)
code-challenge restricted-source self-referential
code-challenge restricted-source self-referential
asked 5 hours ago
Jo KingJo King
23.4k255123
23.4k255123
$begingroup$
If the code accepts a Unicode string must we filter byte-by-byte - for example if the current highest voted entry (Japt by Luis felipe De jesus Munoz) entry is fed "Ŧ" (U+0166) should it yield "f" (U+0066)? Or is there a guarantee that we only receive the first 256 Unicode characters in the input?
$endgroup$
– Jonathan Allan
1 hour ago
$begingroup$
Is it OK if the function doesn't work if the string contains null bytes ()? As C uses null terminated strings, a function cannot know whether it's the end of the string or just a null byte.
$endgroup$
– wastl
20 mins ago
add a comment |
$begingroup$
If the code accepts a Unicode string must we filter byte-by-byte - for example if the current highest voted entry (Japt by Luis felipe De jesus Munoz) entry is fed "Ŧ" (U+0166) should it yield "f" (U+0066)? Or is there a guarantee that we only receive the first 256 Unicode characters in the input?
$endgroup$
– Jonathan Allan
1 hour ago
$begingroup$
Is it OK if the function doesn't work if the string contains null bytes ()? As C uses null terminated strings, a function cannot know whether it's the end of the string or just a null byte.
$endgroup$
– wastl
20 mins ago
$begingroup$
If the code accepts a Unicode string must we filter byte-by-byte - for example if the current highest voted entry (Japt by Luis felipe De jesus Munoz) entry is fed "Ŧ" (U+0166) should it yield "f" (U+0066)? Or is there a guarantee that we only receive the first 256 Unicode characters in the input?
$endgroup$
– Jonathan Allan
1 hour ago
$begingroup$
If the code accepts a Unicode string must we filter byte-by-byte - for example if the current highest voted entry (Japt by Luis felipe De jesus Munoz) entry is fed "Ŧ" (U+0166) should it yield "f" (U+0066)? Or is there a guarantee that we only receive the first 256 Unicode characters in the input?
$endgroup$
– Jonathan Allan
1 hour ago
$begingroup$
Is it OK if the function doesn't work if the string contains null bytes ()? As C uses null terminated strings, a function cannot know whether it's the end of the string or just a null byte.
$endgroup$
– wastl
20 mins ago
$begingroup$
Is it OK if the function doesn't work if the string contains null bytes ()? As C uses null terminated strings, a function cannot know whether it's the end of the string or just a null byte.
$endgroup$
– wastl
20 mins ago
add a comment |
10 Answers
10
active
oldest
votes
$begingroup$
Japt -P, score: 255 (2 bytes)
ff
f => filter, second f => everything but 'f'
Try it online!
Japt, score: 255 (2 bytes)
From @Shaggy
oo
o => remove everything but, second o => 'o'
Try it online!
$endgroup$
2
$begingroup$
The right language for the job :)
$endgroup$
– Kevin Cruijssen
3 hours ago
1
$begingroup$
oowould also work, without the-Pflag.
$endgroup$
– Shaggy
3 hours ago
1
$begingroup$
Guys, we have a winner!
$endgroup$
– Adám
2 hours ago
add a comment |
$begingroup$
APL (Dyalog Unicode), score: 253, tiebreaker: 8 bytesSBCS
Anonymous tacit prefix function
∩∘'∩∘'''
Try it online!
∩ intersection of the argument
∘ and
'∩∘''' the three characters in the code (∩∘')
$endgroup$
add a comment |
$begingroup$
05AB1E, score: 252 253 ( 4 3 distinct bytes used; 8 bytes in total)
„ÃJ„„JJÃ
Try it online.
Explanation:
„ÃJ # Push the String "ÃJ"
„„J # Push the string "„J"
J # Join them together: "ÃJ„J"
à # Only keep these three characters from the (implicit) input
# (and output the result implicitly)
Note that the order of ÃJ and „J in the 2-char strings are important, because „ is also used for dictionary words, where every two characters is a dictionary word (except for a select few characters like letters, digits, -, and such). So „Jà would be 'a word' J, as well as a dictionary word à + the next character (in this case „), which apparently is the word "causing".
$endgroup$
2
$begingroup$
Crossed out 4 with spacing is still a crossed out 4
$endgroup$
– Jo King
5 hours ago
$begingroup$
@JoKing I've used<s> 4 </s>, so it's no longer a crossed out 4 :)
$endgroup$
– Kevin Cruijssen
5 hours ago
add a comment |
$begingroup$
Ruby -p, score 248 (8 unique bytes / 483 bytes)
eval""<<11+11+11+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1<<11+11+11+11+1+1<<111+1+1+1+1+1<<111+1+1+1<<11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1<<111+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+1+1+1+1+1<<11+11+11+1<<11+11+11+1+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+1+1+1+1+1<<11+11+11+1+1+1+1+1+1<<11+11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+1+1+1+1+1+1
Try it online!
$endgroup$
add a comment |
$begingroup$
Japt, 248 score, 20 bytes
f"[ fq"[\\\]]" q
Try it online!
$endgroup$
$begingroup$
Luis managed to find the optimal solution but you could improve your score withoQ+"+oQ"Qor simplyoobut that's just a variation on Luis' solution.
$endgroup$
– Shaggy
3 hours ago
add a comment |
$begingroup$
JavaScript (ES6), score: 242 (144 bytes)
A rather naive approach using an array of bytes for I/O.
t=>t.filter(t=>'f'>['eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffeeeefeeeeeeeeeeeeeeffeeeeeeeeeeeeeeeeeeeeeeeeeeeefefeeeeeeeffeefeefeeeeefef'[t]])
Try it online!
How?
The 14 filtered characters are '().=>[]efilrt. They are marked with an f in the lookup string. For characters above t (ASCII code 116) which are not defined in this string, [undefined] evaluates to an empty string and 'f'>'' is true.
$endgroup$
add a comment |
$begingroup$
Perl 5, score 251 (5 distinct bytes, 8058 bytes total)
s<><<s<>e<><s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^^s^^^<<s^^^<<s>><><<s>>><<s>>><<s>>>^s>>><<s>>><<s>>><<s>>><<s>>>^s>>><<s>>><e^s<^>e>ee<e^<see><>>>>^<^^<se^e^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^e^^^^^^^e^^>^^^^s^s^ss>^<^^^^s^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^s^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>>eeee^s<><<eee<e^<see><>>>^<^<^>^^^^s^s^s>^<^^^^^^^^^^^>^<^^^>>eeee
Try it online!
Uses the <>^es Turing-complete subset of Perl. The above code was obtained by running print<>=~y<<>^es><>cdr through my converter.
$endgroup$
add a comment |
$begingroup$
sed, 250 (6 unique, 14 bytes total)
s/[^][sg^/]//g
Try it online!
$endgroup$
add a comment |
$begingroup$
Python 2, Score 244 245, 13390 2079 bytes
Takes a list of integers
exec'%c'*(11--11--11--11--1--1--1--1--1--1--1--1--1--1--1)%(111--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1,111--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1,111--1,11--11--11--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--11--11--11--11--11--11--1--1,111--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1,11--11--11--1--1--1--1,11--11--11--11--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--11--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1)
Try it online!
This evaluates to the following line of code:
print[x for x in input()if x in map(ord,"exc'%-(),1*")]
Python 3, Score 240 241, 54 bytes
+1 thanks to Jonathan Allan.
lambda a:[i for i in a if i in b""" ":[]abdfilmnor"""]
Try it online!
$endgroup$
$begingroup$
You could get rid of the need forin your Py 3 version by using triple quotesb''' ':[]abdfilmnor'''. In Python 2 you could do a full program in the same vein for 242:print(''.join(p for p in input() if p in ''' '().fijnoprtu''')), although not as good as theexec.
$endgroup$
– Jonathan Allan
2 hours ago
add a comment |
$begingroup$
Jelly, score 254 (4 bytes)
f⁾f⁾
Try it online!
⁾xy is shorthand for “xy” (a two-character string).
We filter the input string down to just the characters occurring in “f⁾”.
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "200"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f180356%2feww-those-bytes-are-gross%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
10 Answers
10
active
oldest
votes
10 Answers
10
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Japt -P, score: 255 (2 bytes)
ff
f => filter, second f => everything but 'f'
Try it online!
Japt, score: 255 (2 bytes)
From @Shaggy
oo
o => remove everything but, second o => 'o'
Try it online!
$endgroup$
2
$begingroup$
The right language for the job :)
$endgroup$
– Kevin Cruijssen
3 hours ago
1
$begingroup$
oowould also work, without the-Pflag.
$endgroup$
– Shaggy
3 hours ago
1
$begingroup$
Guys, we have a winner!
$endgroup$
– Adám
2 hours ago
add a comment |
$begingroup$
Japt -P, score: 255 (2 bytes)
ff
f => filter, second f => everything but 'f'
Try it online!
Japt, score: 255 (2 bytes)
From @Shaggy
oo
o => remove everything but, second o => 'o'
Try it online!
$endgroup$
2
$begingroup$
The right language for the job :)
$endgroup$
– Kevin Cruijssen
3 hours ago
1
$begingroup$
oowould also work, without the-Pflag.
$endgroup$
– Shaggy
3 hours ago
1
$begingroup$
Guys, we have a winner!
$endgroup$
– Adám
2 hours ago
add a comment |
$begingroup$
Japt -P, score: 255 (2 bytes)
ff
f => filter, second f => everything but 'f'
Try it online!
Japt, score: 255 (2 bytes)
From @Shaggy
oo
o => remove everything but, second o => 'o'
Try it online!
$endgroup$
Japt -P, score: 255 (2 bytes)
ff
f => filter, second f => everything but 'f'
Try it online!
Japt, score: 255 (2 bytes)
From @Shaggy
oo
o => remove everything but, second o => 'o'
Try it online!
edited 3 hours ago
answered 3 hours ago
Luis felipe De jesus MunozLuis felipe De jesus Munoz
5,02721568
5,02721568
2
$begingroup$
The right language for the job :)
$endgroup$
– Kevin Cruijssen
3 hours ago
1
$begingroup$
oowould also work, without the-Pflag.
$endgroup$
– Shaggy
3 hours ago
1
$begingroup$
Guys, we have a winner!
$endgroup$
– Adám
2 hours ago
add a comment |
2
$begingroup$
The right language for the job :)
$endgroup$
– Kevin Cruijssen
3 hours ago
1
$begingroup$
oowould also work, without the-Pflag.
$endgroup$
– Shaggy
3 hours ago
1
$begingroup$
Guys, we have a winner!
$endgroup$
– Adám
2 hours ago
2
2
$begingroup$
The right language for the job :)
$endgroup$
– Kevin Cruijssen
3 hours ago
$begingroup$
The right language for the job :)
$endgroup$
– Kevin Cruijssen
3 hours ago
1
1
$begingroup$
oo would also work, without the -P flag.$endgroup$
– Shaggy
3 hours ago
$begingroup$
oo would also work, without the -P flag.$endgroup$
– Shaggy
3 hours ago
1
1
$begingroup$
Guys, we have a winner!
$endgroup$
– Adám
2 hours ago
$begingroup$
Guys, we have a winner!
$endgroup$
– Adám
2 hours ago
add a comment |
$begingroup$
APL (Dyalog Unicode), score: 253, tiebreaker: 8 bytesSBCS
Anonymous tacit prefix function
∩∘'∩∘'''
Try it online!
∩ intersection of the argument
∘ and
'∩∘''' the three characters in the code (∩∘')
$endgroup$
add a comment |
$begingroup$
APL (Dyalog Unicode), score: 253, tiebreaker: 8 bytesSBCS
Anonymous tacit prefix function
∩∘'∩∘'''
Try it online!
∩ intersection of the argument
∘ and
'∩∘''' the three characters in the code (∩∘')
$endgroup$
add a comment |
$begingroup$
APL (Dyalog Unicode), score: 253, tiebreaker: 8 bytesSBCS
Anonymous tacit prefix function
∩∘'∩∘'''
Try it online!
∩ intersection of the argument
∘ and
'∩∘''' the three characters in the code (∩∘')
$endgroup$
APL (Dyalog Unicode), score: 253, tiebreaker: 8 bytesSBCS
Anonymous tacit prefix function
∩∘'∩∘'''
Try it online!
∩ intersection of the argument
∘ and
'∩∘''' the three characters in the code (∩∘')
answered 4 hours ago
AdámAdám
28.3k274201
28.3k274201
add a comment |
add a comment |
$begingroup$
05AB1E, score: 252 253 ( 4 3 distinct bytes used; 8 bytes in total)
„ÃJ„„JJÃ
Try it online.
Explanation:
„ÃJ # Push the String "ÃJ"
„„J # Push the string "„J"
J # Join them together: "ÃJ„J"
à # Only keep these three characters from the (implicit) input
# (and output the result implicitly)
Note that the order of ÃJ and „J in the 2-char strings are important, because „ is also used for dictionary words, where every two characters is a dictionary word (except for a select few characters like letters, digits, -, and such). So „Jà would be 'a word' J, as well as a dictionary word à + the next character (in this case „), which apparently is the word "causing".
$endgroup$
2
$begingroup$
Crossed out 4 with spacing is still a crossed out 4
$endgroup$
– Jo King
5 hours ago
$begingroup$
@JoKing I've used<s> 4 </s>, so it's no longer a crossed out 4 :)
$endgroup$
– Kevin Cruijssen
5 hours ago
add a comment |
$begingroup$
05AB1E, score: 252 253 ( 4 3 distinct bytes used; 8 bytes in total)
„ÃJ„„JJÃ
Try it online.
Explanation:
„ÃJ # Push the String "ÃJ"
„„J # Push the string "„J"
J # Join them together: "ÃJ„J"
à # Only keep these three characters from the (implicit) input
# (and output the result implicitly)
Note that the order of ÃJ and „J in the 2-char strings are important, because „ is also used for dictionary words, where every two characters is a dictionary word (except for a select few characters like letters, digits, -, and such). So „Jà would be 'a word' J, as well as a dictionary word à + the next character (in this case „), which apparently is the word "causing".
$endgroup$
2
$begingroup$
Crossed out 4 with spacing is still a crossed out 4
$endgroup$
– Jo King
5 hours ago
$begingroup$
@JoKing I've used<s> 4 </s>, so it's no longer a crossed out 4 :)
$endgroup$
– Kevin Cruijssen
5 hours ago
add a comment |
$begingroup$
05AB1E, score: 252 253 ( 4 3 distinct bytes used; 8 bytes in total)
„ÃJ„„JJÃ
Try it online.
Explanation:
„ÃJ # Push the String "ÃJ"
„„J # Push the string "„J"
J # Join them together: "ÃJ„J"
à # Only keep these three characters from the (implicit) input
# (and output the result implicitly)
Note that the order of ÃJ and „J in the 2-char strings are important, because „ is also used for dictionary words, where every two characters is a dictionary word (except for a select few characters like letters, digits, -, and such). So „Jà would be 'a word' J, as well as a dictionary word à + the next character (in this case „), which apparently is the word "causing".
$endgroup$
05AB1E, score: 252 253 ( 4 3 distinct bytes used; 8 bytes in total)
„ÃJ„„JJÃ
Try it online.
Explanation:
„ÃJ # Push the String "ÃJ"
„„J # Push the string "„J"
J # Join them together: "ÃJ„J"
à # Only keep these three characters from the (implicit) input
# (and output the result implicitly)
Note that the order of ÃJ and „J in the 2-char strings are important, because „ is also used for dictionary words, where every two characters is a dictionary word (except for a select few characters like letters, digits, -, and such). So „Jà would be 'a word' J, as well as a dictionary word à + the next character (in this case „), which apparently is the word "causing".
edited 4 hours ago
answered 5 hours ago
Kevin CruijssenKevin Cruijssen
38.6k557200
38.6k557200
2
$begingroup$
Crossed out 4 with spacing is still a crossed out 4
$endgroup$
– Jo King
5 hours ago
$begingroup$
@JoKing I've used<s> 4 </s>, so it's no longer a crossed out 4 :)
$endgroup$
– Kevin Cruijssen
5 hours ago
add a comment |
2
$begingroup$
Crossed out 4 with spacing is still a crossed out 4
$endgroup$
– Jo King
5 hours ago
$begingroup$
@JoKing I've used<s> 4 </s>, so it's no longer a crossed out 4 :)
$endgroup$
– Kevin Cruijssen
5 hours ago
2
2
$begingroup$
Crossed out 4 with spacing is still a crossed out 4
$endgroup$
– Jo King
5 hours ago
$begingroup$
Crossed out 4 with spacing is still a crossed out 4
$endgroup$
– Jo King
5 hours ago
$begingroup$
@JoKing I've used
<s> 4 </s>, so it's no longer a crossed out 4 :)$endgroup$
– Kevin Cruijssen
5 hours ago
$begingroup$
@JoKing I've used
<s> 4 </s>, so it's no longer a crossed out 4 :)$endgroup$
– Kevin Cruijssen
5 hours ago
add a comment |
$begingroup$
Ruby -p, score 248 (8 unique bytes / 483 bytes)
eval""<<11+11+11+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1<<11+11+11+11+1+1<<111+1+1+1+1+1<<111+1+1+1<<11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1<<111+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+1+1+1+1+1<<11+11+11+1<<11+11+11+1+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+1+1+1+1+1<<11+11+11+1+1+1+1+1+1<<11+11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+1+1+1+1+1+1
Try it online!
$endgroup$
add a comment |
$begingroup$
Ruby -p, score 248 (8 unique bytes / 483 bytes)
eval""<<11+11+11+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1<<11+11+11+11+1+1<<111+1+1+1+1+1<<111+1+1+1<<11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1<<111+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+1+1+1+1+1<<11+11+11+1<<11+11+11+1+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+1+1+1+1+1<<11+11+11+1+1+1+1+1+1<<11+11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+1+1+1+1+1+1
Try it online!
$endgroup$
add a comment |
$begingroup$
Ruby -p, score 248 (8 unique bytes / 483 bytes)
eval""<<11+11+11+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1<<11+11+11+11+1+1<<111+1+1+1+1+1<<111+1+1+1<<11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1<<111+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+1+1+1+1+1<<11+11+11+1<<11+11+11+1+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+1+1+1+1+1<<11+11+11+1+1+1+1+1+1<<11+11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+1+1+1+1+1+1
Try it online!
$endgroup$
Ruby -p, score 248 (8 unique bytes / 483 bytes)
eval""<<11+11+11+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1<<11+11+11+11+1+1<<111+1+1+1+1+1<<111+1+1+1<<11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1<<111+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+11+11+11+11+1+1+1+1+1+1+1+1+1<<11+11+11+11+1+1+1+1+1<<11+11+11+1<<11+11+11+1+1+1+1+1+1+1+1+1+1<<11+11+11+11+11+1+1+1+1+1<<11+11+11+1+1+1+1+1+1<<11+11+11+11<<11+11+11+1+1+1+1+1+1<<11+11+11+1+1+1+1+1+1
Try it online!
edited 30 mins ago
answered 3 hours ago
G BG B
7,7861328
7,7861328
add a comment |
add a comment |
$begingroup$
Japt, 248 score, 20 bytes
f"[ fq"[\\\]]" q
Try it online!
$endgroup$
$begingroup$
Luis managed to find the optimal solution but you could improve your score withoQ+"+oQ"Qor simplyoobut that's just a variation on Luis' solution.
$endgroup$
– Shaggy
3 hours ago
add a comment |
$begingroup$
Japt, 248 score, 20 bytes
f"[ fq"[\\\]]" q
Try it online!
$endgroup$
$begingroup$
Luis managed to find the optimal solution but you could improve your score withoQ+"+oQ"Qor simplyoobut that's just a variation on Luis' solution.
$endgroup$
– Shaggy
3 hours ago
add a comment |
$begingroup$
Japt, 248 score, 20 bytes
f"[ fq"[\\\]]" q
Try it online!
$endgroup$
Japt, 248 score, 20 bytes
f"[ fq"[\\\]]" q
Try it online!
answered 3 hours ago
ASCII-onlyASCII-only
3,3321236
3,3321236
$begingroup$
Luis managed to find the optimal solution but you could improve your score withoQ+"+oQ"Qor simplyoobut that's just a variation on Luis' solution.
$endgroup$
– Shaggy
3 hours ago
add a comment |
$begingroup$
Luis managed to find the optimal solution but you could improve your score withoQ+"+oQ"Qor simplyoobut that's just a variation on Luis' solution.
$endgroup$
– Shaggy
3 hours ago
$begingroup$
Luis managed to find the optimal solution but you could improve your score with
oQ+"+oQ"Q or simply oo but that's just a variation on Luis' solution.$endgroup$
– Shaggy
3 hours ago
$begingroup$
Luis managed to find the optimal solution but you could improve your score with
oQ+"+oQ"Q or simply oo but that's just a variation on Luis' solution.$endgroup$
– Shaggy
3 hours ago
add a comment |
$begingroup$
JavaScript (ES6), score: 242 (144 bytes)
A rather naive approach using an array of bytes for I/O.
t=>t.filter(t=>'f'>['eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffeeeefeeeeeeeeeeeeeeffeeeeeeeeeeeeeeeeeeeeeeeeeeeefefeeeeeeeffeefeefeeeeefef'[t]])
Try it online!
How?
The 14 filtered characters are '().=>[]efilrt. They are marked with an f in the lookup string. For characters above t (ASCII code 116) which are not defined in this string, [undefined] evaluates to an empty string and 'f'>'' is true.
$endgroup$
add a comment |
$begingroup$
JavaScript (ES6), score: 242 (144 bytes)
A rather naive approach using an array of bytes for I/O.
t=>t.filter(t=>'f'>['eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffeeeefeeeeeeeeeeeeeeffeeeeeeeeeeeeeeeeeeeeeeeeeeeefefeeeeeeeffeefeefeeeeefef'[t]])
Try it online!
How?
The 14 filtered characters are '().=>[]efilrt. They are marked with an f in the lookup string. For characters above t (ASCII code 116) which are not defined in this string, [undefined] evaluates to an empty string and 'f'>'' is true.
$endgroup$
add a comment |
$begingroup$
JavaScript (ES6), score: 242 (144 bytes)
A rather naive approach using an array of bytes for I/O.
t=>t.filter(t=>'f'>['eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffeeeefeeeeeeeeeeeeeeffeeeeeeeeeeeeeeeeeeeeeeeeeeeefefeeeeeeeffeefeefeeeeefef'[t]])
Try it online!
How?
The 14 filtered characters are '().=>[]efilrt. They are marked with an f in the lookup string. For characters above t (ASCII code 116) which are not defined in this string, [undefined] evaluates to an empty string and 'f'>'' is true.
$endgroup$
JavaScript (ES6), score: 242 (144 bytes)
A rather naive approach using an array of bytes for I/O.
t=>t.filter(t=>'f'>['eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffeeeefeeeeeeeeeeeeeeffeeeeeeeeeeeeeeeeeeeeeeeeeeeefefeeeeeeeffeefeefeeeeefef'[t]])
Try it online!
How?
The 14 filtered characters are '().=>[]efilrt. They are marked with an f in the lookup string. For characters above t (ASCII code 116) which are not defined in this string, [undefined] evaluates to an empty string and 'f'>'' is true.
edited 3 hours ago
answered 4 hours ago
ArnauldArnauld
76.7k693322
76.7k693322
add a comment |
add a comment |
$begingroup$
Perl 5, score 251 (5 distinct bytes, 8058 bytes total)
s<><<s<>e<><s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^^s^^^<<s^^^<<s>><><<s>>><<s>>><<s>>>^s>>><<s>>><<s>>><<s>>><<s>>>^s>>><<s>>><e^s<^>e>ee<e^<see><>>>>^<^^<se^e^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^e^^^^^^^e^^>^^^^s^s^ss>^<^^^^s^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^s^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>>eeee^s<><<eee<e^<see><>>>^<^<^>^^^^s^s^s>^<^^^^^^^^^^^>^<^^^>>eeee
Try it online!
Uses the <>^es Turing-complete subset of Perl. The above code was obtained by running print<>=~y<<>^es><>cdr through my converter.
$endgroup$
add a comment |
$begingroup$
Perl 5, score 251 (5 distinct bytes, 8058 bytes total)
s<><<s<>e<><s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^^s^^^<<s^^^<<s>><><<s>>><<s>>><<s>>>^s>>><<s>>><<s>>><<s>>><<s>>>^s>>><<s>>><e^s<^>e>ee<e^<see><>>>>^<^^<se^e^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^e^^^^^^^e^^>^^^^s^s^ss>^<^^^^s^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^s^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>>eeee^s<><<s<>e<><s^^^<<s^^^<<s^^^<<s^^^<<s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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>>eeee^s<><<s<>e<><s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^^s^^^<<s>>><<s>>><<s>>><<s>>><<s>>>^s>>><<s>>><<s>>><<s>>><<s>>><e^s<^>e>ee<e^<see><>>>>^<^^<se^e^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^e^^^^^^^e^^>^^^^s^s^ss>^<^^^^s^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^s^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>>eeee^s<><<eee<e^<see><>>>^<^<^>^^^^s^s^s>^<^^^^^^^^^^^>^<^^^>>eeee
Try it online!
Uses the <>^es Turing-complete subset of Perl. The above code was obtained by running print<>=~y<<>^es><>cdr through my converter.
$endgroup$
Perl 5, score 251 (5 distinct bytes, 8058 bytes total)
s<><<s<>e<><s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^<<s^^^^s^^^<<s^^^<<s>><><<s>>><<s>>><<s>>>^s>>><<s>>><<s>>><<s>>><<s>>>^s>>><<s>>><e^s<^>e>ee<e^<see><>>>>^<^^<se^e^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^e^^^^^^^e^^>^^^^s^s^ss>^<^^^^s^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^s^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>^<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>>eeee^s<><<eee<e^<see><>>>^<^<^>^^^^s^s^s>^<^^^^^^^^^^^>^<^^^>>eeee
Try it online!
Uses the <>^es Turing-complete subset of Perl. The above code was obtained by running print<>=~y<<>^es><>cdr through my converter.
answered 2 hours ago
GrimyGrimy
2,1511018
2,1511018
add a comment |
add a comment |
$begingroup$
sed, 250 (6 unique, 14 bytes total)
s/[^][sg^/]//g
Try it online!
$endgroup$
add a comment |
$begingroup$
sed, 250 (6 unique, 14 bytes total)
s/[^][sg^/]//g
Try it online!
$endgroup$
add a comment |
$begingroup$
sed, 250 (6 unique, 14 bytes total)
s/[^][sg^/]//g
Try it online!
$endgroup$
sed, 250 (6 unique, 14 bytes total)
s/[^][sg^/]//g
Try it online!
answered 1 hour ago
Kirill L.Kirill L.
4,6151523
4,6151523
add a comment |
add a comment |
$begingroup$
Python 2, Score 244 245, 13390 2079 bytes
Takes a list of integers
exec'%c'*(11--11--11--11--1--1--1--1--1--1--1--1--1--1--1)%(111--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1,111--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1,111--1,11--11--11--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--11--11--11--11--11--11--1--1,111--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1,11--11--11--1--1--1--1,11--11--11--11--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--11--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1)
Try it online!
This evaluates to the following line of code:
print[x for x in input()if x in map(ord,"exc'%-(),1*")]
Python 3, Score 240 241, 54 bytes
+1 thanks to Jonathan Allan.
lambda a:[i for i in a if i in b""" ":[]abdfilmnor"""]
Try it online!
$endgroup$
$begingroup$
You could get rid of the need forin your Py 3 version by using triple quotesb''' ':[]abdfilmnor'''. In Python 2 you could do a full program in the same vein for 242:print(''.join(p for p in input() if p in ''' '().fijnoprtu''')), although not as good as theexec.
$endgroup$
– Jonathan Allan
2 hours ago
add a comment |
$begingroup$
Python 2, Score 244 245, 13390 2079 bytes
Takes a list of integers
exec'%c'*(11--11--11--11--1--1--1--1--1--1--1--1--1--1--1)%(111--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1,111--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1,111--1,11--11--11--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--11--11--11--11--11--11--1--1,111--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1,11--11--11--1--1--1--1,11--11--11--11--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--11--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1)
Try it online!
This evaluates to the following line of code:
print[x for x in input()if x in map(ord,"exc'%-(),1*")]
Python 3, Score 240 241, 54 bytes
+1 thanks to Jonathan Allan.
lambda a:[i for i in a if i in b""" ":[]abdfilmnor"""]
Try it online!
$endgroup$
$begingroup$
You could get rid of the need forin your Py 3 version by using triple quotesb''' ':[]abdfilmnor'''. In Python 2 you could do a full program in the same vein for 242:print(''.join(p for p in input() if p in ''' '().fijnoprtu''')), although not as good as theexec.
$endgroup$
– Jonathan Allan
2 hours ago
add a comment |
$begingroup$
Python 2, Score 244 245, 13390 2079 bytes
Takes a list of integers
exec'%c'*(11--11--11--11--1--1--1--1--1--1--1--1--1--1--1)%(111--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1,111--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1,111--1,11--11--11--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--11--11--11--11--11--11--1--1,111--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1,11--11--11--1--1--1--1,11--11--11--11--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--11--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1)
Try it online!
This evaluates to the following line of code:
print[x for x in input()if x in map(ord,"exc'%-(),1*")]
Python 3, Score 240 241, 54 bytes
+1 thanks to Jonathan Allan.
lambda a:[i for i in a if i in b""" ":[]abdfilmnor"""]
Try it online!
$endgroup$
Python 2, Score 244 245, 13390 2079 bytes
Takes a list of integers
exec'%c'*(11--11--11--11--1--1--1--1--1--1--1--1--1--1--1)%(111--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,111--1,111--1--1--1--1--1--1,111--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,111--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1,111--1,11--11--11--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--11--11--1,111--1--1--1,11--11--11--11--11--11--11--11--11--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--11--11--11--11--11--11--1--1,111--1--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1,11--11--11--1--1--1--1,11--11--11--11--1,11--11--11--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1--1--1,11--11--11--11--1--1--1--1--1,11--11--11--1--1--1--1--1--1--1--1--1,11--11--11--1,11--11--11--1--1--1--1--1--1--1--1,11--11--11--11--11--11--11--11--1--1--1--1--1)
Try it online!
This evaluates to the following line of code:
print[x for x in input()if x in map(ord,"exc'%-(),1*")]
Python 3, Score 240 241, 54 bytes
+1 thanks to Jonathan Allan.
lambda a:[i for i in a if i in b""" ":[]abdfilmnor"""]
Try it online!
edited 5 mins ago
answered 3 hours ago
ovsovs
19k21159
19k21159
$begingroup$
You could get rid of the need forin your Py 3 version by using triple quotesb''' ':[]abdfilmnor'''. In Python 2 you could do a full program in the same vein for 242:print(''.join(p for p in input() if p in ''' '().fijnoprtu''')), although not as good as theexec.
$endgroup$
– Jonathan Allan
2 hours ago
add a comment |
$begingroup$
You could get rid of the need forin your Py 3 version by using triple quotesb''' ':[]abdfilmnor'''. In Python 2 you could do a full program in the same vein for 242:print(''.join(p for p in input() if p in ''' '().fijnoprtu''')), although not as good as theexec.
$endgroup$
– Jonathan Allan
2 hours ago
$begingroup$
You could get rid of the need for
in your Py 3 version by using triple quotes b''' ':[]abdfilmnor'''. In Python 2 you could do a full program in the same vein for 242: print(''.join(p for p in input() if p in ''' '().fijnoprtu''')), although not as good as the exec.$endgroup$
– Jonathan Allan
2 hours ago
$begingroup$
You could get rid of the need for
in your Py 3 version by using triple quotes b''' ':[]abdfilmnor'''. In Python 2 you could do a full program in the same vein for 242: print(''.join(p for p in input() if p in ''' '().fijnoprtu''')), although not as good as the exec.$endgroup$
– Jonathan Allan
2 hours ago
add a comment |
$begingroup$
Jelly, score 254 (4 bytes)
f⁾f⁾
Try it online!
⁾xy is shorthand for “xy” (a two-character string).
We filter the input string down to just the characters occurring in “f⁾”.
$endgroup$
add a comment |
$begingroup$
Jelly, score 254 (4 bytes)
f⁾f⁾
Try it online!
⁾xy is shorthand for “xy” (a two-character string).
We filter the input string down to just the characters occurring in “f⁾”.
$endgroup$
add a comment |
$begingroup$
Jelly, score 254 (4 bytes)
f⁾f⁾
Try it online!
⁾xy is shorthand for “xy” (a two-character string).
We filter the input string down to just the characters occurring in “f⁾”.
$endgroup$
Jelly, score 254 (4 bytes)
f⁾f⁾
Try it online!
⁾xy is shorthand for “xy” (a two-character string).
We filter the input string down to just the characters occurring in “f⁾”.
answered 8 mins ago
LynnLynn
49.5k795228
49.5k795228
add a comment |
add a comment |
If this is an answer to a challenge…
…Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.
…Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
Explanations of your answer make it more interesting to read and are very much encouraged.…Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.
More generally…
…Please make sure to answer the question and provide sufficient detail.
…Avoid asking for help, clarification or responding to other answers (use comments instead).
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f180356%2feww-those-bytes-are-gross%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
If the code accepts a Unicode string must we filter byte-by-byte - for example if the current highest voted entry (Japt by Luis felipe De jesus Munoz) entry is fed "Ŧ" (U+0166) should it yield "f" (U+0066)? Or is there a guarantee that we only receive the first 256 Unicode characters in the input?
$endgroup$
– Jonathan Allan
1 hour ago
$begingroup$
Is it OK if the function doesn't work if the string contains null bytes ()? As C uses null terminated strings, a function cannot know whether it's the end of the string or just a null byte.
$endgroup$
– wastl
20 mins ago