Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
veky: That's a nice story, but I really think the [next one](http://www.catb.org/jargon/html/koans.html#id...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
veky: Meh... I expected more of you (for example, calculating probability distributions, and guessing most...
|
Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
veky: Ah, you traditionalists. Don't you know Python has generators, that automatically save the state? :-...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
odwl: sum(array[-1:] is an interesting way to avoid the empty array. This is probably the shortest readabl...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Sim0000: Thank you very much. Of course, I have experience with programming languages such as C and Java. P...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
Juge_Ti: It took me some time, but here's a solution (it just popped into my mind) : ''' ' s == ]1-::[s :s ad...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
Juge_Ti: checkio = lambda s: s[::-1] == s # s == ]1-::[s :s adbmal = oikcehc Is it cheating ? ;)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
qria: The line you didn't understand is exactly identical to this line from 20th line of your code: time_m...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
qria: I'm not much of a python pro myself, but here's my humble suggestions. I hope this will somehow help...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
bryukh: Yeah, first time i meet this thing, then i started to use js and created event handler inside loops....
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
bryukh: Oh, it's simpler than first (and after "closures") "a", because here we are creating additional scop...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
bryukh: It's like "closures" inside loops for Javascript.
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
veky: Hm... you know that those superscript digits also have .isdigit property? It still works because upp...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
nickie: Well done. I think we have the same solution: solving for all configurations, then answering. I thin...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Juge_Ti: Very clever ! To shorten it a bit more, you could have replaced lines 13-16 by : return ''.join(reve...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
veky: Do you _really_ write this on your mobile phone? And does it have Python installed? :-)
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
nickie: I'm happy to say that this solution passes the exhaustive check. Very well done! It's definitely slo...
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
nickie: I'm sorry to find out that your solution needs more than 7 rounds for some test cases. Exhaustive te...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
veky: > And I'm a bit unhappy with this kind of sum-constructs anyway, since I feel that a pythonic versio...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
veky: I always say this, so I'll say it here too, although I'm sure you know it. :-) sum(1 for blah if con...
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
bryukh: We should make the special gateway for him -- "Send you code by SMS" :)
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
Amachua: That's not a problem, It's only when a solution is appreciated that it bothers me. No likes no probl...
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
veky: The most original is the last line. ;-D
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
veky: In fact, I didn't. But you wouldn't believe me anyway. :-P
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
veky: Yeah, product FTW. Otherwise it would be too indented (like mine). :-D
|
Nov. 23, 2017, 1:35 p.m. |
+ 1 |
for Comment
veky: > One could write the skeleton of the parsing and transforming code using ast in a day, and then wor...
|
Nov. 23, 2017, 1:35 p.m. |
+ 1 |
for Comment
nickie: A nice one, well done. More or less what I did except for the numeric encoding, the call to "replace...
|
Nov. 23, 2017, 1:34 p.m. |
+ 1 |
for Comment
veky: Bravo, bravo, bravo. You got almost everything. (Yeah, I wanted actual answers, just maybe not so fa...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
veky: As the title says, I managed to write code that's shorter than FONT (by line _and_ character count)....
|
March 9, 2014, 1:59 a.m. |
+ 5 |
for
Brute-veky
|
Feb. 25, 2014, 2:06 a.m. |
+ 3 |
for
Straightforward-nickie
|
Feb. 17, 2014, 6:26 p.m. |
+ 2 |
for
7 or fewer-nickie
|
Feb. 6, 2014, 11:41 p.m. |
+ 2 |
for
Second-Amachua
|
Jan. 30, 2014, 1:18 a.m. |
+ 3 |
for
Brute force-nickie
|
Jan. 30, 2014, 1:05 a.m. |
+ 1 |
for Comment
veky: > Looks like Guido has listened to you, though in a rather covert way :). Yeah, it's a bit bizarre t...
|
Jan. 23, 2014, 1:02 a.m. |
+ 1 |
for
First-thinklarge
|
Jan. 23, 2014, 12:22 a.m. |
+ 2 |
for
code<FONT-veky
|
Jan. 18, 2014, 12:23 a.m. |
+ 2 |
for
ACO-Zanzacar
|
Jan. 14, 2014, 4:25 p.m. |
+ 4 |
for
First-Amachua
|
Dec. 11, 2013, 12:15 a.m. |
+ 2 |
for
Backslash breaks symmetry-EnCuKou
|
Dec. 11, 2013, 12:15 a.m. |
+ 2 |
for
First-madmanbob
|
Nov. 29, 2013, 12:20 p.m. |
+ 1 |
for Comment
bryukh: Thanks. This is the original solution and interesting method with rotations. It's something new.
|
Nov. 14, 2013, 10:31 p.m. |
+ 1 |
for Comment
bryukh: Interesting. We have one feature in developing now. This will add possibility for creating these tas...
|
Nov. 14, 2013, 5:52 p.m. |
+ 1 |
for Comment
bryukh: Also, if you change your code, then environment restart, so if stop solution in the middle and chang...
|
Nov. 14, 2013, 5:52 p.m. |
+ 1 |
for Comment
bryukh: > Ideally the tryit panel would work in the same way and also reset the python environment when you ...
|
Nov. 7, 2013, 11:33 p.m. |
+ 2 |
for
First-jmn81
|
Nov. 7, 2013, 4:41 p.m. |
+ 1 |
for Comment
Amachua: Really strange behaviour. I wasn't aware of that! :) P.S. Without evaluating it, I was thinking it w...
|
Nov. 7, 2013, 4:41 p.m. |
+ 1 |
for Comment
bryukh: Ok. I got it. But it's weird.
|
Nov. 7, 2013, 4:41 p.m. |
+ 1 |
for Comment
bryukh: Ok. I got why it does not return generator and returns . But why second ?
|
Nov. 6, 2013, 10:03 a.m. |
+ 1 |
for Comment
Amachua: I think that for every solution we can control the ghost in a way that we lose. What's matters is th...
|
Nov. 6, 2013, 10:03 a.m. |
+ 1 |
for Comment
nickie: Nice exhaustive search. I'm not sure it would work, if the ghost did not do what you expect in the c...
|
Nov. 6, 2013, 9:58 a.m. |
+ 3 |
for
Alpha beta pruning-nickie
|
Nov. 6, 2013, 7:42 a.m. |
+ 1 |
for Comment
Amachua: Nice solution! It's a good idea to use a global strategy for each ghost/Stephen position. Also, I wo...
|
Nov. 2, 2013, 11:42 p.m. |
+ 1 |
for Comment
bryukh: Yes, i saw it. I mean, that i need to read more about functools and lru_cache.
|
Nov. 2, 2013, 12:12 p.m. |
+ 2 |
for
Dijkstra-Juge_Ti
|
Nov. 2, 2013, 12:11 p.m. |
+ 2 |
for
Greedy-bryukh
|
Nov. 2, 2013, 11:43 a.m. |
+ 1 |
for
GenerateRepeatProgram-agdk26
|
Nov. 2, 2013, 11:43 a.m. |
+ 1 |
for
First-bunnychai
|
Nov. 2, 2013, 11:43 a.m. |
+ 1 |
for
Second-blackfaced
|
Nov. 2, 2013, 11:43 a.m. |
+ 2 |
for
First-Anne29
|
Nov. 2, 2013, 11:43 a.m. |
+ 3 |
for
Boo-Juge_Ti
|