We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Same problem here. Unless I misunderstand the conditions I dont see the subset which satisfies the given rules. As mentioned before, since every element except 15015 is even (thus divisible by 2), only a subset with 15015 is valid, but every case fails. Looking at it element by element:
{15015, 10010} - divisible by 5
{15015, 6006} - divisible by 3
{15015, 4290->80080} - divisible by 5
{15015, 12012->96096} - divisible by 3
{15015, 8580->73920} - divisible by 5
So I have to conclude this is a bug unless I'm misunderstanding something in the rules.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and GCD
You are viewing a single comment's thread. Return to all comments →
Same problem here. Unless I misunderstand the conditions I dont see the subset which satisfies the given rules. As mentioned before, since every element except 15015 is even (thus divisible by 2), only a subset with 15015 is valid, but every case fails. Looking at it element by element:
So I have to conclude this is a bug unless I'm misunderstanding something in the rules.