June 2, 2020, 7:07 p.m. |
+ 1 |
for Comment
Pocu4: Not bad. ANd you can also "units = number % 10" instead of "units = (number % 100) % 10"
|
May 31, 2020, 8:06 p.m. |
+ 1 |
for Comment
hozhupovode: Perfect solution, man.
|
May 31, 2020, 7:01 p.m. |
+ 1 |
for Comment
Seikou_Matsuo: nice!
|
May 29, 2020, 8:05 a.m. |
+ 1 |
for Comment
Peter_Fishman: NIce!
|
April 3, 2020, 11:50 a.m. |
+ 1 |
for Comment
juestr: Whoa numerical fitting. I guess the special form of MAGIC is a red herring, as long as it is large e...
|
Nov. 23, 2017, 1:37 p.m. |
+ 1 |
for Comment
mquintus: Nice one! Much better than the usual solution where you redefine the __eq__ operator.
|
Nov. 23, 2017, 1:36 p.m. |
+ 1 |
for Comment
johnymoonlight: There can be simpler solutions via calculating angles and nothing more
|
Nov. 23, 2017, 1:33 p.m. |
+ 1 |
for Comment
DiEvAl_0d0e0434e59e45f68684d0e: k = int((6 * number) ** (1.0 / 3)) if k * (k + 1) * (k + 2) > 6 * number: k -= 1 This was pretty sma...
|
Aug. 2, 2016, 12:25 p.m. |
+ 1 |
for Comment
szperajacyzolw: Everybody in every IT company should produce code that way :D
|
Feb. 17, 2016, 9:36 p.m. |
+ 1 |
for Comment
veky: It's a poor man's limit. For a sphere. :-) Of course it doesn't affect the needed accuracy when it i...
|
May 5, 2015, 8:59 a.m. |
+ 1 |
for Comment
nickie: I'd rather have the following refactored version, if it was for free. But (unless I'm being unfair t...
|
April 30, 2015, 8:11 a.m. |
+ 1 |
for Comment
Cjkjvfnby: Say no to copy-paste.
|
June 29, 2014, 7:53 p.m. |
+ 1 |
for Comment
nickie: That's what I thought I should do when I started this task, and it would have saved me a few hours o...
|
June 29, 2014, 7:52 p.m. |
+ 1 |
for Comment
veky: > Makes me wonder how you come up with gooblygook like that :) I get a feeling you haven't seen my s...
|
June 29, 2014, 7:52 p.m. |
+ 1 |
for Comment
veky: You could have had even less code here: checkio = { ... # your wonderful dict }.get ;-) (I know that...
|
June 29, 2014, 7:11 p.m. |
+ 1 |
for Comment
nickie: This solution is not complete, but the task description is not complete either. The elements for whi...
|
March 18, 2014, 10:02 p.m. |
+ 1 |
for Comment
veky: Too bad attempts aren't reversed (divisor,remainder) - then {d for d,m in a} could be set(dict(a)). ...
|
June 23, 2013, 8:23 p.m. |
+ 1 |
for Comment
johnymoonlight: it looks too complicated
|
June 23, 2013, 4 p.m. |
+ 1 |
for Comment
bryukh: + for HashKey.
|
June 17, 2013, 9:23 p.m. |
+ 1 |
for Comment
veky: Nice usage of itertools, but you don't really need them. See mine.
|