Nov. 23, 2017, 1:44 p.m. |
+ 1 |
for Comment
bryukh: Yeah, the third loop is redundant even for bruteforce :)
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
artemrudenko: What i like in your solutions is that they are always well documented!
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
veky: The task is easy no matter what you reduce. See my solutions for some ideas. :-) But yeah, other thi...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
veky: PP doesn't appeal that much to me (probably because I have no idea how to actually _use_ both sides ...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
ichaleynbin: Yeah, when I saw that example, I realized it was theoretically possible and went back and tried to u...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
ichaleynbin: IMPOSSIBRU!! The game you put there could never occur. A game of tic tac toe ends when ONE player is...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
wind: I understand that. Better to have global constant that explains that NUMBER_IN_ALPHA = 26 NUMBER_A =...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
oduvan: http://www.python.org/dev/peps/pep-0008/#function-names > Function names should be lowercase, with w...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
bryukh: It's like to the code golf with Java names :) Interesting solution.
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
oduvan: Leap Motion will be raw until it get enough interesting games for this device :)
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
lllz: Leap Motion is too raw now. We played with it in the office and it's more of a fun for 10 minutes, w...
|
Nov. 23, 2017, 1:42 p.m. |
+ 1 |
for Comment
bryukh: I have published it in "Incernator" section. Now you can share the task link with you friend. For ea...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Real puzzle of this solution is in .items order. Pydocs: CPython implementation detail: Keys and val...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
htamas: tmp = sqrt((s%4-(g+v)%4)**2+(s//4-(g+v)//4)**2) Tip: you don't need sqrt here. If you are only compa...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
Tiktin: By the way this author also as a couple of other free books in the area of complexity and statistics...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
TarasBasiuk: It's an OK solution, I see your point. I just don't think this is a good example of "best solution"....
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
bryukh: No problem. I have added it in my ToDo. But if you are interested, then here the link https://github...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
oduvan: Thanks Vidal for your response. all two features will be returned soon.
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
oduvan: You can also ask questions after other users' solutions. If something not clear. ... or simply use f...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
bryukh: Nope. I scan the text 26 times, not N times. This is 26 * N + N for max. So we have 27 * N. This is ...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
veky: Nice, but can be compressed much further. First, you don't need twice as long items in ALPHABETS, ju...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
krzychusan: def has_valid_mask(ip): function name has_valid_mask is misleading considering what it is really che...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
veky: While you're shrinking... (longexpression if longexpression > 0 else 0) is shorter _and_ more readab...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
altarfinch: Your use of global variables makes it more optimized than mine...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
veky: I completely agree with you. I would also like you to note the fact that I am not your employee. ;-)...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
veky: ...because if you place it in "Puzzle", it will look lame compared to mine. ;-P Seriously, it could ...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
htamas: Perhaps because I didn't go for character count? :) But since you asked for it, [I've beaten you by ...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
htamas: [SPOILER](# "It will give you a syntax error because the parentheses are missing after checkio. But ...
|
Nov. 23, 2017, 1:38 p.m. |
+ 1 |
for Comment
bryukh: > In most tasks, test cases are small and not as exhaustive as they could be. Sometime we make mista...
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
htamas: Yes, that's the fix. In line 2, you can write t.split() instead of t.split("␣"). It's not exactly th...
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
muchzill4: I hate myself and I want to die. So obvious.
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
macfreek: Of course, I couldn't resist trying this solution -- completely ignore the encrypted message, and ju...
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
bryukh: Ok. i got the answer. We little changed recalculation. All your points are remain.
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
htamas: In line 7, zip() trims all lines to the length of the shortest one. This causes inputs like checkio(...
|
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:34 p.m. |
+ 1 |
for Comment
veky: Oh yeah, you missed to say that in checkio=lambda I,S=lambda ... = in checkio=lambda and = in S=lamb...
|
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
oduvan: To get your code reviewed you need to review code of others. It works very often.
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
lsdda: Wow, this is an exciting piece of solution. Very difficult to follow, but rather though-invoking. I ...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
veky: No, I think that's exactly intended. > The patterns in the image matrix are not crossed, because you...
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
bryukh: Hm, thanks. Maybe i will add the phrase about start point.
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
oduvan: > Is there a way to contact a user directly? Even when I clicked on a user profile, I don't see any ...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
bryukh: One little advice -- "sum" is a builtin function in python and using it as a variable name is not a ...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
veky: This is my monster. ;-) checkio=lambda c,n:",".join(map("".join,__import__("itertools").zip_longest(...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
ines: @bryukh: Don't mess with hope :P @abhijit74: I think all of tasks in Home station could be solved wi...
|
Nov. 23, 2017, 1:32 p.m. |
+ 1 |
for Comment
bryukh: As already said Amachua you can see it in the task's description. Also you can see it after tests ru...
|
June 6, 2016, 8:36 p.m. |
+ 1 |
for Comment
ljy95135: if language == "中國": return "我愛Python的 !" we use '我愛Python!' instead of using '的' as a end.
|
June 7, 2015, 9:06 p.m. |
+ 1 |
for
First-SergeyKomarov
|
May 28, 2015, 4:03 p.m. |
+ 1 |
for Comment
Riddick: Excellent solution!
|
May 24, 2015, 8:17 p.m. |
+ 1 |
for Comment
bryukh: Look at "magic" methods in python classes.
|
May 4, 2015, 8:52 p.m. |
+ 1 |
for Comment
bryukh: Lewis Carroll Liked 42 before Adams.
|
April 30, 2015, 2:16 p.m. |
+ 1 |
for Comment
StefanPochmann: I can't tell... are you calling @LuigiMoro's solution *"almost regexp solution"* because it's almost...
|
April 25, 2015, 7:17 a.m. |
+ 1 |
for Comment
Sim0000: I like international [solution](http://www.checkio.org/mission/i-love-python/publications/Amachua/py...
|
April 22, 2015, 1:32 p.m. |
+ 1 |
for Comment
bryukh: "Where's Wally?" :-) Thanks!
|
April 22, 2015, 9:02 a.m. |
+ 1 |
for Comment
bryukh: :-) Thanks! I will try to add more creative flavour missions.
|
April 20, 2015, 11:41 a.m. |
+ 1 |
for Comment
veky: Yup, that's a nice one. Of course, the loop is then handled with reduce which Guido also doesn't lik...
|
April 16, 2015, 5:18 p.m. |
+ 1 |
for Post
Add this test
|
March 31, 2015, 11:14 a.m. |
+ 1 |
for Comment
Muzzi: As a Chinese, I suggest that the return could be return "我爱 Python!" # or "我愛 Python!", or even "Pyt...
|
March 31, 2015, 11:14 a.m. |
+ 1 |
for Comment
mauricioabreu: Portuguese == "Eu amo Python!" Good job! 2+
|
Feb. 26, 2015, 1:55 p.m. |
+ 2 |
for
Spherical > Flat > Nested-veky
|
Feb. 26, 2015, 1:41 p.m. |
+ 1 |
for Comment
veky: I ask, inter alia, because it is not easily googlable, and it would be a shame if you were denied su...
|
Feb. 24, 2015, 8:55 p.m. |
+ 1 |
for
Broken code-veky
|
Oct. 6, 2014, 5:25 p.m. |
+ 1 |
for Comment
veky: Yeah... def oneliner is really a lambda. ;-)
|
Sept. 29, 2014, 3:36 p.m. |
+ 1 |
for
CheckiO in Top American Universities
|
Sept. 5, 2014, 7:29 a.m. |
+ 1 |
for Comment
luizrocha13: if language == "Portuguese": return "Eu amo Python!"
|
Sept. 4, 2014, 10:57 p.m. |
+ 1 |
for Comment
nickie: Google translate may not know it, but in Greek you usually need an article before nouns, my friend. ...
|
Sept. 4, 2014, 7:36 a.m. |
+ 1 |
for
dimpleqonx-veky
|
Sept. 4, 2014, 7:31 a.m. |
+ 1 |
for Comment
DiZ: Seems you don't need *O* Simple solution ;)
|
Aug. 31, 2014, 12:29 p.m. |
+ 1 |
for Comment
ale1ster: I think that it would be better not to view the other solutions, but instead hints to the "tricks" u...
|
Aug. 29, 2014, 2:49 p.m. |
+ 2 |
for
i_love_regexp-Kerulen
|
Aug. 29, 2014, 8:44 a.m. |
+ 1 |
for Post
New Feature: local editor support for Chrome
|
Aug. 28, 2014, 1:21 p.m. |
+ 1 |
for
First-profuel_39643665ff7744e3bff926
|
Aug. 28, 2014, 1:18 p.m. |
+ 2 |
for
Magnum opus-veky
|
Aug. 27, 2014, 3:03 p.m. |
+ 1 |
for
reduce-Sim0000
|
Aug. 26, 2014, 2:40 p.m. |
+ 1 |
for
random-bunnychai
|
Aug. 26, 2014, 2:39 p.m. |
+ 1 |
for
I do.-curious_k
|
Aug. 22, 2014, 12:20 p.m. |
+ 1 |
for Comment
beistvan: if language == "magyar": return "Én szeretem a Pythont!"
|
Aug. 21, 2014, 8:17 a.m. |
+ 1 |
for Comment
bryukh: Yep, it's a joke.
|
July 12, 2014, 12:21 p.m. |
+ 1 |
for Comment
oduvan: We've recently sent a new t-shirt with a fabulous new design to our winners and we have 2 interview ...
|
July 11, 2014, 12:07 p.m. |
+ 2 |
for
First-Sim0000
|
July 11, 2014, 9:11 a.m. |
+ 1 |
for
First-BestSteve
|
July 11, 2014, 9:11 a.m. |
+ 1 |
for Comment
veky: Best reinventing the wheel ever. :-P
|
July 10, 2014, 11:34 a.m. |
+ 2 |
for
log then Halley-Sim0000
|
June 4, 2014, 9:12 a.m. |
+ 2 |
for
One-liner-nickie
|
April 17, 2014, 1:05 p.m. |
+ 4 |
for
7 strategies-macfreek
|
March 2, 2014, 9:32 p.m. |
+ 1 |
for Post
About tests and heavy data
|
Feb. 28, 2014, 12:37 p.m. |
+ 1 |
for Post
New task: Painting Wall
|
Feb. 21, 2014, 11:12 p.m. |
+ 1 |
for Comment
bryukh: "The list or tuple" I had tossed a coin and chose the tuple :-)
|
Feb. 21, 2014, 10:41 a.m. |
+ 1 |
for
lambda lambda-veky
|
Feb. 21, 2014, 10:25 a.m. |
+ 1 |
for
First-Gennady
|
Feb. 8, 2014, 9:10 p.m. |
+ 1 |
for Post
The semantics of publication categories...
|
Feb. 8, 2014, 9:04 p.m. |
+ 3 |
for
Fast enough for now-nickie
|
Feb. 7, 2014, 3:27 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Final? use enumerate(..., 1) and no need to i+1 Use fillvalue="". You will get shorter lines and cod...
|
Feb. 6, 2014, 11:08 p.m. |
+ 2 |
for
Transpose-nickie
|
Feb. 6, 2014, 8 a.m. |
+ 1 |
for Comment
bryukh: I think you can place your solution in the "Puzzle" category ;-)
|
Feb. 4, 2014, 8:48 a.m. |
+ 1 |
for Comment
bryukh: We and users make mistakes. Sometimes we miss some tests and a solution is accepted. But your soluti...
|
Feb. 4, 2014, 7:49 a.m. |
+ 1 |
for Post
Remove solution after recheck?
|
Jan. 21, 2014, 9:41 a.m. |
+ 1 |
for
code<FONT-veky
|
Jan. 21, 2014, 8:42 a.m. |
+ 1 |
for Comment
ihatepants: Identical to my logic except I decided against for loop. Excellent solution to be a judge for a simp...
|
Jan. 14, 2014, 3:39 p.m. |
+ 5 |
for
Maths - with proof-Juge_Ti
|