Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
bryukh: At first look i thought "This is not a puzzle. I see indents and docstring. It's clear solution and ...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
ignalion: This one won't work for x/y/r > 10. I think we can't expect '0-9 numbers only' just because it isn't...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
apogeum: No man. No sarcasm. We use this doge comments in my team so often, that I forgot how it may sound :)...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
Miaou: Nice list.insert(0, ...) ! Nice hidden Dijkstra ! You were having performance considerations with br...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
pyos_c5874a6bf94549e5b7bf2a696: Note that you don't have to construct the whole set; you can simply call `next` on the iterator inst...
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
guido: def checkio(input_data): It's not your fault, but I do not understand why the problem takes a single...
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
bryukh: :-D Hello, my name is Valentin and i am optimazationoholic in the python.
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
bryukh: > OMG. Now we're talking about milliseconds. I really don't think Python is the right environment fo...
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
seandor: not pythonic.
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
bryukh: We should make the special gateway for him -- "Send you code by SMS" :)
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
htamas: [Did you mean](http://tr.im/4tbdr): checkio = (lambda N, H, R=range, L=len: (lambda *_:0)(*map(*reve...
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
bryukh: I just had examined "RPN" task just before it and used it here :) It's all laziness.
|
Nov. 23, 2017, 1:34 p.m. |
+ 1 |
for Comment
nickie: Still shorter than mine, by some 25%. But this time I won't try to decrypt it... :-)
|
Nov. 23, 2017, 1:34 p.m. |
+ 1 |
for Comment
htamas: Looks like Guido has listened to you, though in a rather covert way :). So, do you have any further ...
|
Nov. 23, 2017, 1:34 p.m. |
+ 1 |
for Comment
htamas: I think this expression does the trick: type('', (__import__('contextlib').ContextDecorator,), {'__e...
|
Nov. 23, 2017, 1:34 p.m. |
+ 1 |
for Comment
htamas: In case you wanted actual answers: > 1\. What are those two lambdas doing after checkio=? How come o...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
atrioom: Yeah, I was about to edit my comment... That even now that I know of generators, your solution still...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
Zanzacar: I am not trying to take that away from you at all. I have seen a lot of people on here bashing your ...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
dapostolopoylos_8fc7a82dae6f47: Damn, it took me about five minutes to understand what you are doing but it is a really clever solut...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
oduvan: Veky, some of the answers are actually longer then some of your publications :)
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
bryukh: Nice. From our discussion i got the several ideas for new tasks. Thanks.
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
shreekar: Neat solution. I completely forgot the complex number theory from high school and could not remember...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
bryukh: I made the hammer with three self-guided heads and with Z-formed handle for the simple nail :)
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
bryukh: I mean the pattern of seeds in a sunflower.
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
ysenko: Really cool and not readable at all :)
|
Nov. 20, 2017, 9:32 p.m. |
+ 1 |
for Comment
eugene.shuvaev: So I was trying to google a clever use of asterisk like this, when realised: 1. You can multiply str...
|
Nov. 20, 2017, 11:16 a.m. |
+ 1 |
for Comment
thatkyle: I'm really glad you posted this solution. I have just started using collections and this is really h...
|
Nov. 18, 2017, 6:02 a.m. |
+ 2 |
for
Head, *body and tail.-Tinus_Trotyl
|
Nov. 18, 2017, 5:25 a.m. |
+ 1 |
for Comment
suic: Hi, if *correct* means that it passes all the tests then it's correct. The reason I find my solution...
|
Nov. 13, 2017, 4:39 p.m. |
+ 1 |
for Comment
oduvan: done, thanks
|
Nov. 10, 2017, 1:33 a.m. |
+ 1 |
for Comment
hanpari: Neat
|
Nov. 7, 2017, 3:12 p.m. |
+ 1 |
for
Without if/else-martin_b
|
Nov. 4, 2017, 1:05 p.m. |
+ 4 |
for
Try Class Without Class + veky's help-Nep
|
Nov. 4, 2017, 5:21 a.m. |
+ 1 |
for Comment
Sim0000: Great solution!
|
Nov. 3, 2017, 8:48 p.m. |
+ 1 |
for Comment
przemyslaw.daniel: Hell has frozen over. I can see 'Your solution failed...'. Do you know what happens with all task po...
|
Nov. 3, 2017, 5:57 p.m. |
+ 3 |
for
Second-Sim0000
|
Nov. 1, 2017, 4:16 a.m. |
+ 1 |
for Comment
Marcin_Coles: And that's why I always look for your solutions :)
|
Oct. 29, 2017, 7:12 p.m. |
+ 1 |
for Comment
jonnytang6: cool
|
Oct. 29, 2017, 7:12 p.m. |
+ 1 |
for Comment
Nep: Tuple would be simpler, but the order doesn't matter.
|
Oct. 28, 2017, 7:54 p.m. |
+ 1 |
for
Shorter-maxadamski
|
Oct. 23, 2017, 9:26 a.m. |
+ 1 |
for Comment
Hayertjez: Short is not always better, remember :D
|
Oct. 20, 2017, 8:27 p.m. |
+ 1 |
for Comment
oduvan: :-P
|
Oct. 18, 2017, 2:23 a.m. |
+ 1 |
for Comment
george.blackthorn: Thanks for this solution. It helped me to learn or understand better some Python techniques. And not...
|
Oct. 16, 2017, 4:53 a.m. |
+ 1 |
for Comment
Hayertjez: Bookmarked, thanks!
|
Oct. 15, 2017, 3:30 a.m. |
+ 1 |
for
First-kodix09
|
Oct. 13, 2017, 11:12 p.m. |
+ 1 |
for Comment
kumaus: Neat!!!
|
Oct. 13, 2017, 11:11 p.m. |
+ 1 |
for Comment
DahliaSR: So, what? You can not append to a string, so it's obvious that do not know how to use strings proper...
|
Oct. 13, 2017, 1:52 a.m. |
+ 1 |
for Comment
DahliaSR: What would be the result of this expression? 'HELLO' == '\"HELLO\"'
|
Oct. 11, 2017, 1:26 p.m. |
+ 1 |
for Comment
aureooms: > Precondition: 0 < number ≤ 2^32 Should probably add if v == 2**32: return 1 as the first instructi...
|
Oct. 11, 2017, 1:20 p.m. |
+ 1 |
for Comment
oduvan: sweet!!
|
Oct. 11, 2017, 2:32 a.m. |
+ 1 |
for Comment
KotaroS: Definitely yes. I was just trying to use an unfamiliar feature, in this case _deque_.
|
Oct. 11, 2017, 2:02 a.m. |
+ 1 |
for Comment
Czarinov: > I think it’s a bit too harsh Maybe. I'm just baffled by people trying to find a flaw in something ...
|
Oct. 11, 2017, 1:58 a.m. |
+ 1 |
for Comment
maurice.makaay: One extra thing I forgot to mention about lambdas (not to pester you about lambdas, just to pester y...
|
Oct. 9, 2017, 3:01 p.m. |
+ 1 |
for Comment
halianka: I didn't know "fractions" lib in python. Though it's easy to come up with. Thank you for your commen...
|
Oct. 9, 2017, 3 p.m. |
+ 1 |
for Comment
tom-tom_f993b3abc4814d4cb5476e: In fact, 5 is the only way to achieve a draw for 1, 3, 7, and 9 beginning
|
Oct. 8, 2017, 6:05 p.m. |
+ 1 |
for
First-halianka
|
Oct. 8, 2017, 5:55 p.m. |
+ 1 |
for Comment
przemyslaw.daniel: Honestly saying I am not sure it's impossible to improve this. However by shuffling function order w...
|
Oct. 8, 2017, 5:54 p.m. |
+ 1 |
for Comment
tom-tom_f993b3abc4814d4cb5476e: They do. Opponent starts - he can start anywhere - 7. Those solutions answer 5 - very good, recommen...
|
Oct. 8, 2017, 3:39 a.m. |
+ 4 |
for
1-liner: 51 chars of madness-przemyslaw.daniel
|
Oct. 8, 2017, 3:06 a.m. |
+ 1 |
for Comment
amaciel81: Not that I could have thought about this all by myself, but you are right: 30 minutes and a couple o...
|
Oct. 4, 2017, 11:25 a.m. |
+ 1 |
for Comment
veghadam1991: WOW! What's a tricky solution! I like learning python tricks by you. :)
|
Oct. 2, 2017, 6:56 p.m. |
+ 1 |
for Comment
DeCooper: Nice solution. I like how you optimise your import statement. Using sets also nice touch.
|
Oct. 2, 2017, 12:10 p.m. |
+ 1 |
for
First-Villentre
|
Sept. 30, 2017, 3:51 a.m. |
+ 1 |
for Comment
suic: I guess, the _reason_ behind this is: `C-style code => C like speed` :D
|
Sept. 28, 2017, 3:30 a.m. |
+ 3 |
for
XOR-StefanPochmann
|
Sept. 28, 2017, 1:58 a.m. |
+ 1 |
for Comment
PavloV: No no contrary, historic context editing was one of the first explanations I though of in trying to ...
|
Sept. 25, 2017, 9:16 a.m. |
+ 1 |
for Comment
blaeffo: This is just brilliant, nice!
|
Sept. 25, 2017, 9:15 a.m. |
+ 1 |
for Comment
vitaly.efremov: Perfect solution and excellent usage of ~ operation :)
|
Sept. 24, 2017, 7:20 p.m. |
+ 1 |
for Comment
MrMike: Thanks for the comments, just learning python!
|
Sept. 23, 2017, 10:28 a.m. |
+ 1 |
for Comment
StefanPochmann: Ok I did look it up. Wow, that was... unexpected.
|
Sept. 23, 2017, 6:45 a.m. |
+ 1 |
for
Recursion-PythonWithPI
|
Sept. 22, 2017, 8:24 p.m. |
+ 1 |
for Comment
DahliaSR: Holy crap... I posted that 3 months ago and nobody noticed it till now. *facepalm* I will fix the po...
|
Sept. 22, 2017, 4:46 a.m. |
+ 1 |
for Comment
Flying_Eye: Nice functional programming style solution
|
Sept. 22, 2017, 4:43 a.m. |
+ 1 |
for Comment
oduvan: > Can I get my thumbs back now? ;-P You have all my thumbs :)
|
Sept. 21, 2017, 3:09 p.m. |
+ 3 |
for
eval(f"{op}({x},{y})")-flpo
|
Sept. 21, 2017, 6:28 a.m. |
+ 1 |
for Comment
flpo: It seems to me the same as my comment above, is there something that escapes me?
|
Sept. 20, 2017, 11:44 a.m. |
+ 1 |
for Comment
StefanPochmann: Not sure whether "such types" refers to things like my List or to people like me :-)
|
Sept. 18, 2017, 10:26 p.m. |
+ 1 |
for Comment
StefanPochmann: Let me give a hint: You added the last value to the next-to-last value. Do it the other way around. ...
|
Sept. 18, 2017, 10:17 p.m. |
+ 4 |
for
1-liner: +marriage-przemyslaw.daniel
|
Sept. 16, 2017, 7:33 p.m. |
+ 1 |
for Comment
BAov: data[-1] += data.pop() doesn't work because of the sequence of the operations. It is better to repla...
|
Sept. 16, 2017, 4:26 p.m. |
+ 1 |
for Comment
StefanPochmann: Another puzzle: What's the shortest correctly working way?
|
Sept. 14, 2017, 9:25 a.m. |
+ 1 |
for Comment
techdoctranslator: Ok, I understand. I need to gain more experience.
|
Sept. 13, 2017, 3:52 a.m. |
+ 3 |
for
In search of Eulerian path (vinc's solution), discarding loops-flpo
|
Sept. 13, 2017, 3:49 a.m. |
+ 1 |
for Comment
flpo: Hi, as you can see [here](https://py.checkio.org/mission/domino-chain/publications/flpo/python-3/in-...
|
Sept. 13, 2017, 3:41 a.m. |
+ 1 |
for
Third-techdoctranslator
|
Sept. 11, 2017, 4:27 a.m. |
+ 2 |
for
Second-techdoctranslator
|
Sept. 9, 2017, 9:50 a.m. |
+ 3 |
for
find_message = str('_').join(('find', 'message'))-flpo
|
Sept. 9, 2017, 8:27 a.m. |
+ 1 |
for Comment
flpo: In (late) response to first comment. If this one should be in “Creative” category, what about [this ...
|
Sept. 8, 2017, 11:35 a.m. |
+ 2 |
for
First-techdoctranslator
|
Sept. 6, 2017, 3:29 p.m. |
+ 1 |
for
Only math-blindnickboy
|
Sept. 6, 2017, 3:27 p.m. |
+ 1 |
for Comment
sharc06: Looks good. I enjoy one line coding when it makes sense and this makes sense.
|
Sept. 5, 2017, 9:31 a.m. |
+ 2 |
for
In search of Eulerian path-vinc
|
Sept. 4, 2017, 12:47 p.m. |
+ 1 |
for Comment
txyloveCoding: Thank you, that is quite clear!
|
Aug. 26, 2017, 12:12 p.m. |
+ 1 |
for Comment
StefanPochmann: Line 10... yeah I suspect that as well, but I'm not that good with numpy, either. Line 16... is empt...
|
Aug. 26, 2017, 6:08 a.m. |
+ 3 |
for
another numpy-StefanPochmann
|
Aug. 25, 2017, 7:40 a.m. |
+ 3 |
for
First-mudax2.mojikasegi
|
Aug. 24, 2017, 2:35 p.m. |
+ 1 |
for Comment
StefanPochmann: Right, I forgot we can rename solutions so I should've done that when I wrote the new one. Done now.
|
Aug. 23, 2017, 3:26 p.m. |
+ 1 |
for Comment
StefanPochmann: No I don't. There I use 2\*str, not 2\*s. Which is shorter than str+str, giving me a reason to use 2...
|
Aug. 23, 2017, 3:25 p.m. |
+ 1 |
for Comment
StefanPochmann: > it surely is easier to read Just for Python newbs like you :-P
|
Aug. 23, 2017, 2:56 p.m. |
+ 1 |
for
4 problems 1 solution-StefanPochmann
|