Hi there, I'm trying to resolve the puzzle with C ++ but sadly I'm getting this error message; unfortunately I don't know about testing on the platform (my lack) but is this perhaps a problem in the test cases?
Thank you in advance and I hope I have asked a relevant question.
main.cpp:156:43: warning: implicit conversion from 'int' to 'const short' changes value from 100000 to -31072 [-Wconstant-conversion]
generate_cases(cases, 100, 10000, 100000);
why I cant find fractions module when using pycharm
Kotlin translation awaiting review.
stupid JS number + bool = number xd
What does the $ do?
I'm new at programming.
Figured out how to do it with GCC's register variables. Looks like Clang doesn't support those (at least not in the same way)
Figured out how to do it with inline assembly. Less elegant, but I got it to work with Clang locally. But I was using a single __asm__ call with multiple instructions and \n\t, so the "no backslashes" rule hit. So I threw up my hands and extended the parameter list instead...
Congratulations for toughing that one out!
I made the output format explicit in the description.
The sample tests only show that the expected solution is a tuple, not that you must output a tuple yourself. I don't like using the "philosophy of python" sectarism in an argument, but duck-typing is expected unless stated otherwise.
I've been lazy though, as the output format is actually specified in the 5x5 Nonogram version. So I guess my complaint was invalid.
(Still, I think it's better to clearly state such limitation)
I don't see the problem, actually... :o
the sample tests clearly show you're supposed to return a 2D-tuple, so why would you do otherwise?
(maybe the output format should be specified in the descriptionn, tho)
In Python version, the assertion will fail if the result grid is not a 2D-tuple. It shouldn't matter what kind of Iterable contains the answer so long as the values are right.
Can someone explain these formatting things?
More specifically, the symbols "?" and ":". I looked them up and just couldn't figure them out.
Yep. Started from that one. Have not fixed its timeout yet... :(
That one I vote 1dan... :)