57
veky
22 48 64 Leader of the month
44583/ 53887
Last seen 16 hours ago
Member for 11 years, 6 months, 6 days
Difficulty Advanced
We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time.

Best reviews / Newest reviews
elegant solution-aksenof
You have a weird definition of "elegant". :-P More
Dictionary lookups-johngraham
Ah, a butchering of a nice algorithm. :-P def checkio(data): arabic = dict(I=1, V=5, X=10, L=50, C=100, D=500, M=1000) roman = dict(zip(arabic.values(), arabic)) def fragments(): for exponent, digit in enumerate(map(int, reversed(str(data)))): More
Newbie over comments?-johngraham
This is not "as efficient as possible", but you already know that. :-) It is also not as concise as it could be. Look at [this beauty](https://py.checkio.org/mission/the-longest-palindromic/publications/veky/python-3/although-straightforwardness-beats-speed/). :-) And yes, comments are not really More
Ugly piping-smilicic
OMG. filtering a lambda, then listing it, only to iterate through it. Hard to believe this wasn't intentionally ugly. :-P How about for b, w, n in states: if n == n0: (Indenting 2 spaces is acceptable in such situations, if you're stingy with line lengths.) --- states[(b, w, n)] More
One line formula-ermichin158 1
LOL. Yes, sort might be unnecessary, but doing it twice... :-o And it even isn't one line. :-P More
But! It's work!-ermichin158 1
Category doesn't mean "it works". :-P More
Clean-ermichin158 1
"Clean" doesn't mean "long, repetitive, subatomic and boring". :-P More
List and join-ermichin158 1
It's much better to use if command.startswith('POP'): since when you change POP to something else, you'll likely forget to change the 3. Also, line 5: if queue: More
Me + you = <3-ermichin158 1
I object to line 9. :-D Otherwise, nice solution. More
A mysterious one =)-ermichin158 1
You could have written it even longer. Though I don't really know how. :-P More
Folded ceilings-smilicic
Python is not Lisp. Don't map lambdas. sum(x+max(0,x-100) for x in fold.values()) More
Clear Solution-ssk123
Not particularly clear. BTW why not `keys[0] = ''`? And str.zfill method could be handy. :-9 More
PEP8online compliant-veky
@ruiling1211 why did you cancel your plus? :-) More
Matrices are two-dimensional, right?-smilicic
Your matrices obviously aren't. The good question is, why? :-) And more importantly, why do you think this is clear? :-P More
Sympy powered-Paul-Yuchao-Dong 1
It would be much better to use SymPy directly here, not only its results. :-) And people really should import hypot from math instead of sqrt. :-P More
Weak censorship-smilicic
`oneadd = True.__add__` is better. :-) More
Random fact: Abraham Lincoln was the first president to ever be photographed at his inauguration.-siebenschlaefer 1
There is really no reason for a separate function. Lines 10~22 should just be up there, instead of line 4. Also, instead of naming the result (with those unfortunate parentheses), it would be better to return it immediately. if f_result is g_result is None: return None, 'both_error' More
Nothing special-dshorstein 1
You have obviously seen that the origin is irrelevant - after all, you start from 0 for ranks, and from 1 for files. It is much easier if you put origin on (97, 48) - do you know why? ;-) And why lines 9~10? Special cases are not special enough. ;-) More
The most cheety solution =P-Columpio
Why do you think this is cheating? More