"Follow your dreams in as few bytes as possible" or something like that, the exact sort of meaningless nonsense that you typically see with sunsets and mountains and stuff in the background
"This site is for programming contests and challenges. General programming questions are off-topic here. You may be able to get help on Stack Overflow."
Pretty print a grid of polyominoes
Write a function that accepts a rectangular grid of ids in any reasonable format, for example a multi-line string
IIILOO
ILLLOO
and returns a pretty printed version,
╔═══════════╦═══╦═══════╗
║ ║ ║ ║
║ ╔══════...
Inspired by a question (now closed) at Stack Overflow.
Given a square matrix, let its double trace be defined as the sum of the entries from its main diagonal and its anti-diagonal. These are marked with X in the following examples:
X · · X
· X X ·
· X X ·
X · · X
X · · · X
· X · X ·
· · X · ·
...
you could've asked your question at any time :P LotM does not change the site scope or rules in any way, it merely encourages using a particular language with bounties
!@#$%^&*()_+ is a stack-based programming language.
Required Commands:
!
duplicate top member of stack
@
pops top of stack and prints that popped number as a character
#
pops top of stack and prints that popped number as a number
$
swaps the top two members of the stack
%
rotates the stack by 1 ...
@emanresuA I've closed totallyhuman's challenge as a dupe of Operation Unzalgo; they're exact dupes in my mind
Granted, totallyhuman's is the older challenge, but operation unzalgo has thhree times the score and is more comprehensive (so totallyhuman's is a subset of it IMO)
@emanresuA Its one of those weird things that's nice to have when you know for certain, but in any other situation, you have to be able to justify the decision (which is why I usually provide an explanation when I use my hammer)
either that, or its just my crippling fear or being wrong ;P
from math import log,sqrt
import sys
n = 760 ** 890
print(log(n))
I get a valid result.
Now change log by sqrt and you get (as expected):
OverflowError: int too large to convert to float
So I suppose there's a trick for integer arguments in log function, using integer logarithms but I didn't fi...
@emanresuA Most likely "PowerShell can do this too" as the language, and for the byte count I'm not sure. I think my current version would ignore the answer entirely though, so it's moot
I'd decided it's better to ignore ambiguous byte counts rather than unintentionally score it as 1 byte or something
Although you do have to be careful to include lots of formats, since older answers tend to follow the standard formats less strictly
So you get a bias in the ages of answers represented
Like if there was a user who used CJam or Golfscript really heavily, and much better than anyone else, but they used a hard-to-parse format for all of their headers, it'd bias them to be (even) worse than modern languages
RTO uses Node, and Docker for the sandboxing (plus it's going to have support for user-uploaded languages, so Docker makes that easy)
RTOs goal is to make a site that requires almost no maintainence by the person running it, to prevent similar issues to TIO (since nobody can realistically be expected to maintain a hobby project for their whole life)
I think ATO is aiming to be more of a typical TIO-like one, and I think it's doing pretty well at that. Not sure about language support right now but I know it's improving.
RTO's development has been a bit slow since I was working with Avi but he's been busy lately
@Anush Possibly, you'd just start with 999 instead of 1, and decrement instead of incrementing.
Problem is, unless they're all just a number or two from 999, it'd get incredibly slow
@RedwolfPrograms DSO is JS-only, but uses dynamic import so I can just request the interpreter from Github. I really need to write a better wrapper tho :p
@RedwolfPrograms I kinda want to help with this, but I feel like I'm just going to leave it at some point.
if (this.docker != null) {
log_2("run (" + this.id + "): could not run: already running");
throw new CouldNotRun("This container is currently running");
}
@RedwolfPrograms They only came because someone didn't get the memo to pay some taxes, rather than none, to make it look like we were somewhat complying with federal tax regulations
Basically, Vyxal has several types of compression: - Dictionary compression, where any pairs of non-ASCII characters in a string are converted into a word - Base-255 number compression, where a string of characters get converted into a number - Base-255 string compression, where a string of characters get converted into a number from base 255 and then converted into base 27 with the alphabet + spaces
This basiically takes your username, turns it into a string of symbols that evaluate to that when run in Vyxal, removes the delimiters («...« for base-255 strings), quotifies, and evaluates as a dictionary string.