Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thank you!
You are taking a suboptimal path around the circle with centre at (2.83323324984,-1.17841666332). The path above and to the right of this circle is shorter.
Failed to pass this test:
Expected: equal to 8.26474 (+/- 1e-08)
Actual: 8.70883.
Have no clue what is wrong. Probably some magic related to doubles and precision, but I can't get where.
https://gist.github.com/Lezh1k/0e4f948d5c7a99aef15a1973f715e837 - here is a not perfect visualization of path (not perfect because traversing through arcs look like lines, but they are not).
Please give some hints :) Or maybe just show right path and I'll make changes accordingly.
lol
The Wikipedia article on OCR-A is fairly detailed. If you want the TrueType font file, it can be downloaded for free from fontzone.com.
Still, I couldn't find a specification of this font online, so it was trial and error on my side to find specific patterns for digits.
Finally solved with most stupid method I believe :)
ok, maybe I got it... will try later change the check, thank you
Hi,
It is meaningful because it's the "upper left corner of the ending of the spiral (when you're in the
x
area. I'm afaraid I cannot do better as an explanation, sorry...)This comment is hidden because it contains spoiler information about the solution
Thank you
NOTE: Extra spaces before or after the code have no meaning and should be ignored.
" ...---... -.-.-- - .... . --.- ..- .. -.-. -.- -... .-. --- .-- -. ..-. --- -..- .--- ..- -- .--. ... --- ...- . .-. - .... . .-.. .- --.. -.-- -.. --- --. .-.-.- "
2 spaces should be at the beginning of result, right?
So why the expected result is "SOS! THE" instead of " SOS! THE".
If I ignore first spaces - another test fails. The one where expected result is " E E ".
I'm using C.
Seems you are right. I will add the condition into my solution (in future, maybe :)
Then C++ tests should be fixed.
C++ tests are not correct. Your solution does not follow the problem specification: All operations with the same precedence should be evaluated from left to right. Here is a simple example:
74 * 71 / 33
. This expression must be computed as(74 * 71) / 33
. The expected result is159.21212121212122
. But your solution returns159.2121212121212
.Loading more items...