March 18, 2023, 12:28 a.m. |
+ 1 |
for Comment
StefanPochmann: One char shorter: ``` checkio=lambda*a:len(a)and max(a)-min(a) checkio=lambda*a:max(a:=a or[0])-min(...
|
Nov. 23, 2017, 1:46 p.m. |
+ 1 |
for Comment
veky: It would be really neat if checkio would receive just two arguments (not wrapped in a list). Then th...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: It's sad, I agree. What will be much more sad is that a year from now, bryukh will add more test cas...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: That _is_ what bothers me. The only reason you might care about whether it is a list or a tuple is i...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
rrevol: for variant in combinations(batteries, combination_length): I'm a bit disapointed that the best solu...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
veky: Somebody has been impersonating mathematicians to you. :-P This definitely isn't general, and there ...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
PositronicLlama: I agree, although in general I consider "speedy" to mean the solution is both asymptotically fast as...
|
Nov. 23, 2017, 1:43 p.m. |
+ 1 |
for Comment
wccrawford: Were you going for shortest answer? It's rather hard to read. The logic is good, though.
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
htamas: My solution uses alpha-beta pruning as well, I just wasn't aware that it has a name. CheckiO is a gr...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
bryukh: The "itertools" module is an inexhaustible source :-)
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
veky: > it's all a matter of how and where your code will be used. Of course. The big problem here in Chec...
|
Nov. 23, 2017, 1:41 p.m. |
+ 1 |
for Comment
veky: Well, if it's important (I know it is to you:), b can be preprocessed so that verticals where nothin...
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
veky: You know you don't need [2:]? :-)
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
veky: Best thing since sliced bread. ;-D
|
Nov. 23, 2017, 1:40 p.m. |
+ 1 |
for Comment
veky: abs is a function, no need to lambdize it. :-)
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
nick.seigal: Thank you for your explanation and the link to your student's article! That is really a good explana...
|
Nov. 23, 2017, 1:39 p.m. |
+ 1 |
for Comment
Cjkjvfnby: Code is not well formated, it is hard to read it. **enumerate** has start argument. you can use **it...
|
Nov. 23, 2017, 1:39 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:36 p.m. |
+ 1 |
for Comment
veky: Ok, enough time has passed, I think noone is still trying to figure it out. (If you do, spoiler aler...
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
kvas: I think it would be quite useful to be able to solve the same tasks in different languages. This wou...
|
Jan. 24, 2017, 10:36 a.m. |
+ 1 |
for
First-takoihirrokazu
|
Nov. 14, 2016, 11:27 a.m. |
+ 1 |
for Comment
veky: > It should be good for all practical purposes. After all these years, we even have a proof: [this o...
|
April 26, 2016, 6:56 a.m. |
+ 1 |
for Comment
Amachua: Yeah, I return it directly because it is composed of 8 queens, I didn't check if it's valid. But, co...
|
March 27, 2016, 11:04 a.m. |
+ 1 |
for
First-yarmak_vladislav
|
March 27, 2016, 10:32 a.m. |
+ 1 |
for
First-Amachua
|
Feb. 22, 2016, 8:47 p.m. |
+ 2 |
for
First-stclair.daniel_f70a54fff4764c4
|
Feb. 22, 2016, 8:44 p.m. |
+ 3 |
for
Short oneliner-Invertebrate
|
Feb. 16, 2016, 11:15 p.m. |
+ 3 |
for
Re One Line-AmaroVita
|
Feb. 16, 2016, 11:11 p.m. |
+ 1 |
for
First - Bird Language-AQiccl135
|
Feb. 16, 2016, 11:05 p.m. |
+ 4 |
for
vek-StefanPochmann
|
Feb. 16, 2016, 11:04 p.m. |
+ 3 |
for
Partial-veky
|
Feb. 16, 2016, 10:20 p.m. |
+ 2 |
for
First-ignalion
|
Feb. 16, 2016, 10:19 p.m. |
+ 3 |
for
First - Clock Angle-AQiccl135
|
Jan. 31, 2016, 7:20 p.m. |
+ 1 |
for Comment
veky: While you're completely correct in your reply to BK024, in the interest of completeness, try `checki...
|
Jan. 31, 2016, 7:09 p.m. |
+ 4 |
for
Optimal-veky
|
Nov. 21, 2015, 10:12 p.m. |
+ 2 |
for
Sieve of Eratost generator-spoty
|
Nov. 4, 2015, 6:57 a.m. |
+ 3 |
for
First - Behind 2048-AQiccl135
|
Nov. 4, 2015, 6:52 a.m. |
+ 3 |
for
One line: hashlib.new(algorithm, string.encode()).hexdigest()-M157q
|
Nov. 1, 2015, 7:19 p.m. |
+ 2 |
for
First-meskill
|
Sept. 14, 2015, 5:40 a.m. |
+ 1 |
for Comment
veky: [Mine](http://www.checkio.org/mission/check-digit/publications/veky/python-3/short-is-funnier-than-l...
|
July 13, 2015, 7:46 a.m. |
+ 1 |
for Comment
veky: First, there _is_ a subclass of int already existing. >>> int.__subclasses__() [] Is `[5, True]` a l...
|
July 13, 2015, 7:44 a.m. |
+ 1 |
for Comment
veky: chain(*map(f, l)) is what you're probably looking for. ;-) (And it has nothing to do with ChainMap.:...
|
June 1, 2015, 1:25 p.m. |
+ 1 |
for Comment
StefanPochmann: Disproof: From goal state, just swap blue with yellow. You can't solve it because you never turn rin...
|
June 1, 2015, 1:19 p.m. |
+ 1 |
for
88thPuzzle-bunnychai
|
May 25, 2015, 8:12 a.m. |
+ 1 |
for
amidoinitrite-StefanPochmann
|
May 25, 2015, 8:07 a.m. |
+ 1 |
for
Secret Magic Number-Juge_Ti
|
May 25, 2015, 8 a.m. |
+ 2 |
for
Simple CheckIO-zsimple21
|
May 3, 2015, 3:22 p.m. |
+ 3 |
for
60-DiZ
|
May 1, 2015, 12:03 p.m. |
+ 3 |
for
So clean!-JohnOZ
|
April 28, 2015, 8:38 p.m. |
+ 5 |
for
78-StefanPochmann
|
April 24, 2015, 7:36 p.m. |
+ 5 |
for
Shortest? 52 - Kill me now-StefanPochmann
|
April 12, 2015, 9:44 p.m. |
+ 1 |
for Comment
IanSolWhite: Beautifully short (advantages of maths). For the line C = sum(...), consider using pearls.count("w")
|
April 8, 2015, 12:43 a.m. |
+ 3 |
for
My first generator!-tigelane
|
April 8, 2015, 12:37 a.m. |
+ 3 |
for
Subset-veky
|
April 6, 2015, 7:25 p.m. |
+ 3 |
for
DOX and XOX-veky
|
March 22, 2015, 5:58 p.m. |
+ 2 |
for
First-gyahun_dash
|
Feb. 13, 2015, 8:31 p.m. |
+ 2 |
for
First-jcg
|
Feb. 13, 2015, 8:30 p.m. |
+ 2 |
for
Deceptive-veky
|
Feb. 6, 2015, 10:35 p.m. |
+ 2 |
for
First-zero_loss
|
Feb. 4, 2015, 10:13 a.m. |
+ 3 |
for
Rings, links, bits and sets...-veky
|
Feb. 4, 2015, 10:06 a.m. |
+ 2 |
for
Cycle detection-DiZ
|
Feb. 3, 2015, 9:34 p.m. |
+ 2 |
for
Dynamic Selection-PositronicLlama
|
Feb. 3, 2015, 1:03 p.m. |
+ 1 |
for Comment
veky: About Pascal: that's even _more_ inconsistent than what I thought. So "it's a local variable whose v...
|
Feb. 3, 2015, 12:11 a.m. |
+ 1 |
for Comment
veky: frozenset is much simpler than tuple of sorted, since there are no repetitions. itertools.chain is a...
|
Feb. 2, 2015, 11:51 p.m. |
+ 1 |
for Comment
veky: Of course. Wirth was no fool. He just made the wrong decision balancing between this, very rare as y...
|
Feb. 2, 2015, 8:45 p.m. |
+ 3 |
for
Try: understand-veky
|
Feb. 2, 2015, 8:43 p.m. |
+ 3 |
for
set-gyahun_dash
|
Feb. 2, 2015, 8:20 p.m. |
+ 2 |
for
zzdgnczfgdmksjdgfjs-samulih
|
Feb. 2, 2015, 8:12 p.m. |
+ 3 |
for
real base-veky
|
Feb. 2, 2015, 7:04 p.m. |
+ 2 |
for
First-Serenya
|
Feb. 2, 2015, 6:58 p.m. |
+ 2 |
for
First-BlackHole
|
Oct. 6, 2014, 8:44 p.m. |
+ 1 |
for Comment
veky: Hah. Really, how much LISP experience do you have? :-P
|
Oct. 6, 2014, 7:06 p.m. |
+ 3 |
for
INNER JOIN-veky
|
Oct. 6, 2014, 6:56 p.m. |
+ 3 |
for
First we take Manhattan...-veky
|
Oct. 5, 2014, 10:14 p.m. |
+ 3 |
for
UnionFind-veky
|
Sept. 21, 2014, 8:03 a.m. |
+ 2 |
for
journal.pop(time)-veky
|
Sept. 20, 2014, 8:37 a.m. |
+ 4 |
for
Unreadable regex chain-ale1ster
|
Sept. 20, 2014, 8:36 a.m. |
+ 3 |
for
119-DiZ
|
Sept. 18, 2014, 7:32 a.m. |
+ 1 |
for Comment
DiZ: Here you go, but kinda cryptic if you ask... ;) boolean=lambda x,y,o:1&(8^902>>"spun".find(o[2])%7)>...
|
Sept. 16, 2014, 9:52 p.m. |
+ 2 |
for
Gallery-veky
|
Sept. 16, 2014, 9:43 p.m. |
+ 2 |
for
First-bukebuer
|
Sept. 16, 2014, 9:34 p.m. |
+ 3 |
for
merge_sort-ciel
|
Sept. 16, 2014, 8:31 p.m. |
+ 5 |
for
dimpleqonx-veky
|
Sept. 16, 2014, 8:31 p.m. |
+ 5 |
for
GNU puns-DiZ
|
Sept. 16, 2014, 3:41 p.m. |
+ 2 |
for
filter-veky
|
Sept. 16, 2014, 3:37 p.m. |
+ 2 |
for
Regex; one line-ale1ster
|
Sept. 14, 2014, 8:36 p.m. |
+ 3 |
for
Obfuscated but quite simple-ale1ster
|
Sept. 14, 2014, 6:52 p.m. |
+ 1 |
for Comment
veky: What's wrong with you people? :-)
|
Sept. 14, 2014, 6:45 p.m. |
+ 3 |
for
digestive-veky
|
Sept. 11, 2014, 11:34 a.m. |
+ 2 |
for
Modified A*-bukebuer
|
Sept. 5, 2014, 1:50 p.m. |
+ 3 |
for
Obvious-veky
|
Sept. 5, 2014, 1:32 p.m. |
+ 2 |
for
Indexcept-veky
|
Sept. 5, 2014, 1:30 p.m. |
+ 3 |
for
45-DiZ
|
Sept. 4, 2014, 9:43 p.m. |
+ 1 |
for
fun, easy, powerful-kameranis
|
Sept. 4, 2014, 9:37 p.m. |
+ 3 |
for
Magnum opus-veky
|
Sept. 4, 2014, 8:59 p.m. |
+ 3 |
for
o, safe pawns...-veky
|
Aug. 31, 2014, 4:22 p.m. |
+ 3 |
for
i_love_regexp-Kerulen
|
Aug. 31, 2014, 4:19 p.m. |
+ 2 |
for
No comment-ale1ster
|
Aug. 31, 2014, 3:38 p.m. |
+ 4 |
for
Simple match-ale1ster
|
Aug. 30, 2014, 7:08 p.m. |
+ 2 |
for
lerping-veky
|