@Mego Pretty much. My source on Frodo and Bilbo is literally the first page of the Lord of the Rings. Bilbo's 111th and Frodo's 33rd is the first chapter.
The SAS programming language is a clunky, archaic language dating back to 1966 that's still in use today. The original compiler was written in PL/I, and indeed much of the syntax derives from PL/I. SAS also has a preprocessor macro language which derives from that of PL/I as well. In this challen...
How long until a five-card-stud poker winning hand?
code-golf game
Background:
Five card stud is a variant of poker where the player is dealt a hand of five cards from a shoe of multiple standard 52-card decks. This hand is then used for play/scoring, following the table listed below.
{insert...
I love the Mistborn series. But I have this silly problem where I haven't finished the third book, because when I last reading the whole series, I had to pause to head between my lodgings near my university and going back home. I put the book down and haven't picked it up since
The only series I have avidly enjoyed where I haven't spoiled anything is RWBY. I did not read any of the comments before watching the finale and got all the feels direct and at its greatest potency
@flawr Now? It's 4 am and I have class in 10 hours
@flawr Tomorrow, I promise. Discord is the easiest place to remind me.
@flawr OH YEAH. I forgot I bought a physical copy of Alloy of Law for almost the cheapest I've ever seen a non-translated import book I've ever seen in Indonesia
Is there a "best" way to do this? I imagine one could write a bash script that would print the time, execute the program, and then print the time again, but perhaps there are pitfalls with this.
Is there a consensus on how times should be measured for fastest-code challenges?
"Does anyone know" or "Do any of you know" would both be OK. The first one is, I think, more common when addressing an unspecified group, while the latter is more when you're explicitly directing a question.
@Dennis Could you please freeze my account and chat ban me for 3 days (or whatever time period is shortest past that)? I'm going to be really busy in school the next few days and CG is just going to get in the way.
On a tangential note, I find it fascinating the ratio of non-native English speakers here on PPCG. Most other sites online that I interact with are like 99.9% American.
C++, 48 bytes
#include<math.h>
[](auto x){return pow(x,1./x);}
The second line defines an anonymous lambda function. It can be used by assigning it to a function pointer and calling it, or just calling it directly.
Try it online