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"
|
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
|
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: 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)). ...
|