there is a task to find the value of a function
for an unordered set of 128 bit numbers Ak each of which is represented as
Ak = 2^96 * a1k + 2^64 * a2k + 2^32 * a3k + 2^0 * a4k ,
Where
0 <= aik <= 2^32 - 1
and log10(X) is the integer part of the decimal logarithm of X ,
and we will assume that log10(0) = 0
and N <= 5000
example:
2 // N - кол-во чисел этого набора 0 0 0 2324 // коеффициенты aik для текущего Ak 0 2332 0 0 Amount value - 44
Questions:
- How did 44 turn out in this example ??
- What does an unordered set of numbers mean in this context?
- It is not clear how indexation takes place in the sum - I understand that
k != j?? as if it were equal then what sense would you say to a number with yourself, because it would give0and the logarithm from zero would also be0
actually, for this example, I got the following
A0 - 0 0 0 2324 A1 - 0 2332 0 0 A0 XOR A1 = 0 2332 0 2324 тогда X = 2^96*0 + 2^64+2332 + 2^32*0 + 2^0+2324 = 4.301780718×10²² но отсюда log10(X) != 44 what am I doing wrong ?
What is the correct algorithm that would produce 44?
