M Virts
  • Member for 11 months
  • Last seen this week
  • USA
Play the Fruit Box Game
5 votes

Python, 2013 bytes Uses numpy and ffts to generate moves by convolution, then starts a depth first search of all possible moves, with a timeout to limit the search (definitely not terminating any time ...

View answer
Find the HTTP status code
5 votes

Python 3, 200 190 188 bytes Score:40 Thanks to pxeger for -8 bytes, ChartZ Belatedly for -4 bytes! At least I didn't use a builtin :P this was an editor nightmare, couldn't copy and paste my encoded ...

View answer
Lolololololololololololol
4 votes

Neither beats Johan du Toit's answer, but I enjoy that they are full programs, plus I like the way the longjmp answer works. C (gcc), 39 bytes As straight forward as it gets, uses for initializer to ...

View answer
Print X without X (cop's thread)
4 votes

Python 3, Score:96 Cracked by pxeger Similar to my other answer, improvements inspired by Wheat Wizard's crack. Still self-verifying. Output viewed through hexdump (non-printable output makes it look ...

View answer
AoCG2021 Day 7: Bathroom security goes wild
3 votes

Python 3.8 (pre-release), 115 bytes Not even close to what tsh and alephalpha have created, but a nice straightforward python solution. I can save 5 bytes if I feed it bytes instead of str. lambda l,...

View answer
10 PRINT CHR$(205.5+RND(1)); : GOTO 10 in PHP (or anything else, for that matter)
3 votes

C (gcc), 47 bytes main(){while(putchar(47+45*(rand()/(1<<30))));} Try it online!

View answer
Print X without X (cop's thread)
3 votes

Python 3, Score: 86 Cracked by Wheat Wizard !"#$%&'*+-/37:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\^`kmpqvwxyz{|}~ Self-verifying (will not print a character in the source), new-line is part ...

View answer
Guess my password (robbers' thread)
2 votes

Python, 62 bytes cracks @pxeger's answer A generic escape from exec with no __builtins__: Uses the class heirarchy to go from list to object, builds a dict of subclasses of 'object', finds ...

View answer
Increment The Time
2 votes

C (gcc), 101 bytes I was hoping this would be shorter, but I am posting it despite the length because I think it's an interesting way to compute the answer. This function modifies the input string so ...

View answer
What temperature is my stove?
2 votes

Python 3.8 (pre-release), 68 bytes Nice little lookup table solution. Thanks to Jay Ryan for -7 bytes, and for making me revisit my code to find and fix a bug! 8 definitely is not 0, much to my ...

View answer
Parentheses Clusters
2 votes

C (gcc), 70 bytes I think at this point I have to admit I'm on a ternary operator abuse spree. Big thanks to ErikF for -14 bytes. And thanks the ceilingcat for -4 more! c;f(d){for(d=0;read(0,&c,1)...

View answer
Triple countdown sequence
2 votes

C (gcc), 69 bytes Nested Ternary operator solution. a, b and c are the triple countdown state from fastest to slowest, and d is the increasing count. a is printed for every step in the countdown. (...

View answer
Guess my password (cops' thread)
2 votes

Python 3.8 (pre-release), 163 bytes, safe. My output is KDIITIWDRIKIDITI import random f=open(1,'w') random.seed(0) r=[random.randint(0,255) for l in range(255)] a=input().encode() for b in a: while ...

View answer
Participant number
2 votes

Python 3.8 (pre-release), 34 bytes -8 bytes thanks to ovs! lambda a:101-round(-~a%3*33.3+a/3) Try it online!

View answer
Remove first encountered elements from a second list
2 votes

Python 3.8 (pre-release), 53 bytes lambda a,b:[x for x,y in zip(a,b)if b==(b:={*b}-{y})] Try it online! A little better

View answer
Liars and Guessers
2 votes

Guesser, BinaryReset import random from typing import Callable def Main(rng: random.Random, liar: Callable[[int], int]): """Guess deterministically.""" ub=255 ...

View answer
Shortest infinite loop producing no output
2 votes

Python 3, 14 bytes {*iter(int,1)} Try it online!

View answer
Print X without X (cop's thread)
2 votes

Python 3, Score 104 Cracked by dingledooper Slithering deeper into Python insanity $ python3 ./test6.py |hexdump -C 00000000 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 |................| ...

View answer
Print X without X (cop's thread)
1 votes

Python 3, Score:106, safe. and again... This is the output of my program (displayed here as the repr() of the bytes in python): b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\...

View answer
Loading Circle Animation
1 votes

Python 3.8 (pre-release), 91 bytes Not my favorite because there's no delay... Also this only works with a terminal that supports moving the cursor with \x1b[r;cH, and clearing the terminal with \x1b[...

View answer
Written Word Equation
1 votes

C (gcc), 95 bytes Fixed and -2 bytes thanks to Arnauld. Not too fancy, uses scanf and abuses memory by writing the whole string at the address of a char, mod 5 to get b in single digit range, then ...

View answer
Maximum distance to station
Accepted answer
1 votes

Distance solution: Python 3, 52 Bytes return max(min(abs(l-c)for l in s)for c in range(n)) Try it online! Index solution (added after my first two comments): Python 3, 59 bytes return max((min(abs(...

View answer
Goodbye Cruel World!
1 votes

Python 3, Score: 43/2=21.5! +print("Hello"+"Goodbye Cruel World!"[-7:]) Try it online!

View answer
Neural Processing Lattice Checker
0 votes

C (gcc), 93 bytes Here it is, not extensively tested but I think it should work! Input is a string of 6 digits, no spaces or separators. Exit code 1 means invalid, 0 means valid Uses (lower|upper)>...

View answer
Ascii smiley face challenge
0 votes

Python 3.8 (pre-release), 123 bytes print(''.join(['\n',['*'*x,' '*-x][x<0]][x!=0]for x in(y-90for y in b'RdZVlZXpZYaX`XaZYrZtZtZ_WdW_ZY_WbW_ZY`N`ZXpZVlZRd'))) Try it online! Explanation The list-...

View answer
Guess my password (robbers' thread)
0 votes

Python 3, pxeger - (Incorrect crack) f=open(1,'w') f.write('hah') f.close() Attempt This Online!

View answer
Double-time is not double time
0 votes

Octave, 1 byte I think we all know this is a worthless answer. Gotta show Octave some love. 0 Try it online!

View answer
Print Real Invisible Text
0 votes

Python 3, 47 bytes lambda x:''.join(chr(y-32+(y>63)*98)for y in x) Input must be bytes. I know this doesn't win, I'm posting it because the output could fit into an 8-bit ascii extension. Try it ...

View answer
Implement a Truth-Machine
0 votes

Python 3, 47 bytes Not a winner, but I like the method. set(iter(lambda x=input():(print(x),x)[1],'0')) Try it online!

View answer