Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment Aaranos: 1 on bryukh: Try to use left and right edges: for left in range(len(trinum)): total = 0 answer = [] for right in ... |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment Aaranos: 1 on bryukh: Try to use left and right edges: for left in range(len(trinum)): total = 0 answer = [] for right in ... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment Sim0000: 1 on bryukh: You are right. Thanks! |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment Sim0000: 1 on bryukh: You are right. Thanks! |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment DenGodunov: 1 on bryukh: All tests in the same category run in the same environment. Thus be careful with the global variable... |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment DenGodunov: 1 on bryukh: All tests in the same category run in the same environment. Thus be careful with the global variable... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment Sim0000: 1 on bryukh: Yeah, we skip many good test for this task. So after this case and "-x" we will kill more than half ... |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment Sim0000: 1 on bryukh: Yeah, we skip many good test for this task. So after this case and "-x" we will kill more than half ... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment dwarfjay: 1 on bryukh: Oh, so many map, lambda filter :) |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment fbasti1: 1 on bryukh: [http://www.checkio.org/forum/post/1618/proper-way-to-check-if-sequence-is-empty/](http://www.checki... |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment fbasti1: 1 on bryukh: [http://www.checkio.org/forum/post/1618/proper-way-to-check-if-sequence-is-empty/](http://www.checki... |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment Aaranos: 1 on bryukh: > Pidgeons are awful The task, the description, the tests or birds? I fixed your code with comments:... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment Aaranos: 1 on bryukh: > Pidgeons are awful The task, the description, the tests or birds? I fixed your code with comments:... |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment dwarfjay: 1 on bryukh: One remark only. If you use this in some code where you need performance (not this case of course), ... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment dwarfjay: 1 on bryukh: One remark only. If you use this in some code where you need performance (not this case of course), ... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment dwarfjay: 1 on bryukh: I agree with Veky. It's help you to learn something new. But also i like good documented and clear s... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment Sim0000: 1 on bryukh: Oh, I got it. Thanks. I will add this. The good remark. |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment Sim0000: 1 on bryukh: Oh, I got it. Thanks. I will add this. The good remark. |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment todogzm: 1 on bryukh: [Allowed modules](http://www.checkio.org/wiki/Modules/SupportedModulesForPython3/). You can use heap... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment todogzm: 1 on bryukh: [Allowed modules](http://www.checkio.org/wiki/Modules/SupportedModulesForPython3/). You can use heap... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment rassakhatsky: 1 on bryukh: Your code raises the exception ValueError for this test (line 8). If you show me your code I will tr... |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment rassakhatsky: 1 on bryukh: Your code raises the exception ValueError for this test (line 8). If you show me your code I will tr... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment yarmak_vladislav: 1 on bryukh: Sorry for delay. We've fixed this bug. |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment yarmak_vladislav: 1 on bryukh: Sorry for delay. We've fixed this bug. |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment yarmak_vladislav: 1 on bryukh: It will take time. It's really weird bug that is reproduced in the main server, but not showed in th... |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment yarmak_vladislav: 1 on bryukh: It will take time. It's really weird bug that is reproduced in the main server, but not showed in th... |
Nov. 23, 2017, 1:44 p.m. |
+1 |
Experience for voted comment Amachua: 1 on bryukh: Yeah, the third loop is redundant even for bruteforce :) |
Nov. 23, 2017, 1:44 p.m. |
+5 |
Experience for appreciated comment Amachua: 1 on bryukh: Yeah, the third loop is redundant even for bruteforce :) |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment Lijantropique: 1 on bryukh: Thanks this is interesting and useful. But this task is not "new" already :) As first, "MWL" is the ... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment Paltalan: 1 on bryukh: What is the version of python you are using in IDLE and in checkio? |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment Paltalan: 1 on bryukh: What is the version of python you are using in IDLE and in checkio? |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment veky: 1 on bryukh: The nice trick! lambda x:"+"*x+"-"*-x I like it -- something new and not obvious. |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment veky: 1 on bryukh: The nice trick! lambda x:"+"*x+"-"*-x I like it -- something new and not obvious. |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment pop_saitou: 1 on bryukh: checkio(20) == 45 #20 = 2 * 2 * 5 = 4 * 5 #45 < 54 < 225 < 252 < 522 checkio(17) == 0 #17 = 17 #17 i... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment issei126: 1 on bryukh: Thank for the report. We will try to fix as soon as possible. |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment issei126: 1 on bryukh: Thank for the report. We will try to fix as soon as possible. |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment arcolife: 1 on bryukh: I will send it too. |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment arcolife: 1 on bryukh: I will send it too. |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment arcolife: 1 on bryukh: > OK. the 'not allowed' term confuses me. Thanks. I will try to improve it. |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment arcolife: 1 on bryukh: > OK. the 'not allowed' term confuses me. Thanks. I will try to improve it. |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment Paltalan: 1 on bryukh: Of course the old encrypted text and the old decrypted text have the same length. With it you can ge... |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment Paltalan: 1 on bryukh: Of course the old encrypted text and the old decrypted text have the same length. With it you can ge... |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment Paltalan: 1 on bryukh: The most simple brute-force is use itertools.combinations and check combinations with different leng... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment Paltalan: 1 on bryukh: The most simple brute-force is use itertools.combinations and check combinations with different leng... |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment Gennady: 1 on bryukh: It has long long description. We should reward the users who can read it whole ;) |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment Gennady: 1 on bryukh: It has long long description. We should reward the users who can read it whole ;) |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment Gennady: 1 on bryukh: How many points for this task? |
Nov. 23, 2017, 1:43 p.m. |
+5 |
Experience for appreciated comment PositronicLlama: 1 on bryukh: Pl write short solutions, Veky write understandable solutions (not for this task). What is going on?... |
Nov. 23, 2017, 1:43 p.m. |
+1 |
Experience for voted comment PositronicLlama: 1 on bryukh: Pl write short solutions, Veky write understandable solutions (not for this task). What is going on?... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment ciel: 1 on bryukh: Sorry, I wanted to say "precondition". But we don't restrict users by timeout so be careful with gig... |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment ciel: 1 on bryukh: Sorry, I wanted to say "precondition". But we don't restrict users by timeout so be careful with gig... |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment veky: 1 on bryukh: I've written this phrase in my notebook ;-) |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment veky: 1 on bryukh: I've written this phrase in my notebook ;-) |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment Paltalan: 1 on bryukh: Your code is looped for this test [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0,... |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment Paltalan: 1 on bryukh: Your code is looped for this test [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0,... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment Paltalan: 1 on bryukh: It's correct for degenerated case. I'm not sure how to be with it. We have two options for it. |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment dapostolopoylos_8fc7a82dae6f47: 1 on bryukh: Hm, sorry, but this does not create a copy, just another link for the same list. If you change _a_, ... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment dapostolopoylos_8fc7a82dae6f47: 1 on bryukh: Hm, sorry, but this does not create a copy, just another link for the same list. If you change _a_, ... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment Amachua: 1 on bryukh: It's like to the code golf with Java names :) Interesting solution. |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment Amachua: 1 on bryukh: It's like to the code golf with Java names :) Interesting solution. |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment Juge_Ti: 1 on bryukh: I know him! It's Pacman's ghost!!! |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment Juge_Ti: 1 on bryukh: I know him! It's Pacman's ghost!!! |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment Amachua: 1 on bryukh: I have published it in "Incernator" section. Now you can share the task link with you friend. For ea... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment Amachua: 1 on bryukh: I have published it in "Incernator" section. Now you can share the task link with you friend. For ea... |
Nov. 23, 2017, 1:42 p.m. |
+1 |
Experience for voted comment htamas: 1 on 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. |
+5 |
Experience for appreciated comment htamas: 1 on 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 |
Experience for voted comment htamas: 1 on 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. |
+5 |
Experience for appreciated comment htamas: 1 on 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 |
Experience for voted comment htamas: 1 on bryukh: It's like "closures" inside loops for Javascript. |
Nov. 23, 2017, 1:42 p.m. |
+5 |
Experience for appreciated comment htamas: 1 on bryukh: It's like "closures" inside loops for Javascript. |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment veky: 1 on bryukh: "Floodfill" is very accurate chosen name. |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment veky: 1 on bryukh: "Floodfill" is very accurate chosen name. |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment Amachua: 1 on 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. |
+5 |
Experience for appreciated comment Amachua: 1 on 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 |
Experience for voted comment Chlap: 1 on bryukh: You do not like loops (for, while, all)? |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment peter_parada: 1 on bryukh: Try to look at "union search" algorithms. |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment peter_parada: 1 on bryukh: Try to look at "union search" algorithms. |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment aharrison: 1 on bryukh: The BFS algorithm is a simple way to solve the problem. Use a queue where you can store states. Stat... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment aharrison: 1 on bryukh: The BFS algorithm is a simple way to solve the problem. Use a queue where you can store states. Stat... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment nickie: 1 on bryukh: The "itertools" module is an inexhaustible source :-) |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment pyakpyak: 1 on bryukh: Deprecated since version 2.6: The built-in set/frozenset types replace "set" module. a = set([1,2,3]... |
Nov. 23, 2017, 1:41 p.m. |
+5 |
Experience for appreciated comment pyakpyak: 1 on bryukh: Deprecated since version 2.6: The built-in set/frozenset types replace "set" module. a = set([1,2,3]... |
Nov. 23, 2017, 1:41 p.m. |
+1 |
Experience for voted comment Amachua: 1 on 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:41 p.m. |
+1 |
Experience for voted comment veky: 1 on bryukh: But if change c.lower at text.lower the -20% but it still slower. |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment Pritam.gowda: 1 on bryukh: > d=int(d) and then used f=d/10 Is it still wrong ?? This does not change anything. In the py3 **f=d... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment Pritam.gowda: 1 on bryukh: > d=int(d) and then used f=d/10 Is it still wrong ?? This does not change anything. In the py3 **f=d... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment veky: 1 on bryukh: I think, this is "snowball" effect :-) I like your solutions for new tricks and like PositronicLama ... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: I think, as first you need a data representation -- how to work with hexagons. I used 2D array: 09 0... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment oduvan: 1 on bryukh: А вы читали статью википедии на русском? Медиана делит ряд значений пополам и находит среднее между ... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment Vachenzo: 1 on bryukh: Seriously, inefficient? I saw you solution :) |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment veky: 1 on bryukh: Yep, this is UCS. |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment lesenv: 1 on bryukh: Hm, t think, the problem is a list as default argument. If you try to call you function more than on... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment lesenv: 1 on bryukh: Hm, t think, the problem is a list as default argument. If you try to call you function more than on... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment hamukazu: 1 on bryukh: We know about this problem. But it can be fixed only with a huge segment of the editor. We will try ... |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment hamukazu: 1 on bryukh: We know about this problem. But it can be fixed only with a huge segment of the editor. We will try ... |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment bugbabe: 1 on bryukh: [A-Za-z0-9] -- this is mean lowercase OR uppercase OR digits. |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment bugbabe: 1 on bryukh: [A-Za-z0-9] -- this is mean lowercase OR uppercase OR digits. |
Nov. 23, 2017, 1:40 p.m. |
+5 |
Experience for appreciated comment bugbabe: 1 on bryukh: r"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)." |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment bugbabe: 1 on bryukh: r"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)." |
Nov. 23, 2017, 1:40 p.m. |
+1 |
Experience for voted comment veky: 1 on bryukh: This is micro-optimisation and even for hundreds years it will economize for us dozens kilobytes. |