4 ms·
This is my favorite python implementation in this thread. I daresay it's beautiful. Including whitespace it's still half as long as the "11 line" core of the C
by brian_cloutier 13y ago
This is my favorite python implementation in this thread. I daresay it's beautiful.
Including whitespace it's still half as long as the "11 line" core of the C++ script.
There's an unnecessary 'r'. Combined with the line rhythm established by opening the files in consecutive lines you ensure readers who would have been confused by the 'w' will quickly understand.
And the last line reads like programmer English; by which I mean English with a SVO word order. Not intuitive to the average person but quite parsable by anybody who's used a modern imperative language.
I can't even nitpick your choice of inp instead of input, the rhythm you setup and the contrast with 'out' means it's quite obvious what you mean.
Have an upvote.
- ksrm 13y agoEnglish is usually SVO; I assume you meant OVS?
- deleted 13y ago[deleted]