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.
It's written in maths, not C#, so it expands to
1 <= n AND n <= 2^64-1
. ( Python understands thea <= b <= c
syntax like that, but lots of other languages require theAND
. )Gonna try my best to explain. I read in C# btw. So first of the sign "**" I think it is the same as 2^2, not really sure though.
so 1 is less than or eual to n and if that is true then u check for if that value is <= 2^64 - 1. Is that correct?
Which part of that do you not understand? ( Yes, it helps to be able to read that, so this is not a fatuous question. )
ETA: Note that you can Google that exact phrase, and Google will explain it a bit, and offer a link to QuickMath whch will try to explain in more ways and different terms.
Hmm okay.. Could you explain how you read this "1 <= n <= 2 ** 64 - 1"? Guessing that is a vital part you need to understand to solve this.
But you do, don't you? It's in the description.
Could you ask that question directly on a solution you don't understand? That makes things easier to explain. Ask questions that are as specific as possible; tell us what syntax you understand and what you do not.
If I need to check every combination and see if any result is equals to n. Dont I need to know the max value of the exponent?
Could someone provide me with a resource explaining how to solve this? I looked at the solutions but I don't understand how they work ^^.
This comment is hidden because it contains spoiler information about the solution
How is nobody else mentioning this problem? This just drove me crazy for 10 minutes
realDenom
is being computed with the wrong value. The common denominator of all pairs should still be obtained correctly, but not necessarily simplified.Alright
No, so when reaching the right-most
p
, you jump out of surface, even if there is anotherq
to your right. Equivalent forq
in other direction.Are
p
andq
similar to each other?I thought by similar you mean that
p
only looks for otherp
andq
only looks for otherq
I'm not mad btw, just asking. What is the point of submitting a minified solution?
Loading more items...