Does it halt? Perhaps
code-golfopen-ended-function
Your task is to write a program so that it's unknown (an open problem) if the program halts or not.
To clarify, this doesn't mean that the program can flip a coin and halt or not halt based on that. Rather, the program should always definitely ei...
True, I was the inspiration. But that's to be expected :p
That's super exciting!! It's working for me.
I think you should add an error box to the front-end like right away! That's where OISB shines over all others, so I think you really want to demo that and show it off!
Right now both stdout & stderr are shown in the output box.
Pick the best seat in a vehicle
We have eight seats in a vehicle, represented by numbers:
1 2 3 4
5 6 7 8
Two people get in. First person will pick the seat X. Number X will be inputted to the program. The second person will pick the furthest seat from the first person.
For example, if per...
It's not going to get pushed and it's not going to stay up for more than a few months
But we're running it on a more or less disposable droplet, and we've decided it's better to have RTO running at a slight security risk than to let the project die off
The worst case scenario is RTO goes down for a few days and someone runs a crypto miner on our $6/mo droplet
And even that would take a ton of effort and I trust y'all not to do that
Oh, no. It's all either stuff outside the container, or just changes to what environment the language is running in (like installing stuff on alpine instead of debian)
CMQ I have a text file with lines like bpa.st/KTOA. I want to read it in a line at a time in Python so I get the three floating values and the list put into 4 different variables. How on Earth do you do that?
@BgilMidol well I really want a,b, c to actually contain floats and l to actually contain a list of integers. I am not sure how to show that in the output
def parse(line):
p1, p2 = line.split('[', 1)
p2 = p2.split(']', 1)[0]
a, b, c = [float(n) for n in p1.strip().split()]
list_of_integers = [int(n) for n in p2.split(',')]
return a, b, c, list_of_integers