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.
OP solved it, closing
the C++ test case
(w = 86.7, h = 1.7)
was problematic because the orer of operations affected the result. removed.This comment is hidden because it contains spoiler information about the solution
when yo uwrite sum of every row you can notice that. It's not that hard.
Marking as resolved since the author forgot to ;)
What the fuck it was that easy.
Which math course did you doguys?
Thanks!
Ty for the kata. Was rly fun .
Ty dude . I dont actualy understood what you wanted to say at my first look but I got this now.
Is there any chance of that vector to not even existing ? I got a sigsev even if I was in it's bounds all time.
Hi Tadar, to convert from positive to negative in binary, using two's complement, you invert all bits, and then add 1.
Ok, now I think im going insane . To represent a negative in binary u get the binary of his oposite than make all 1s 0s , and all 0s 1s and make last number 0 right?
Guess I learn new things every day spent here. Ty.
It's just
-2**30
or so, which surely fits in C/C++int
.For reference:
-2**31 <= int < 2**31
What do you think it is, if not an
int
? And how can you get something other thanint
in a function acceptingint
?Loading more items...