Donate to us!
Ideas are far more powerful than guns.
Saturday, October 20, 2018
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 161
Guests Online: 157
Members Online: 4

Registered Members: 107244
Newest Member: davy15
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

Timed 10 - correctness

djcomidi
Member

Your avatar

Posts: 1
Location:
Joined: 05.09.18
Rank:
Active User
Posted on 15-09-18 17:09
I already solved it, but before I did I had one case that failed:

The numbers I got were: 186, 7440, 4464, 9114
I submitted answer = 186, because:
- 186 / 186 = 1
- 7440 / 186 = 40
- 4464 / 186 = 24
- 9114 / 186 = 49

The response I got was:
"That answer is incorrect, the correct answer is: 93"

Since 186 is obviously the greatest common divisor,
why was my answer wrong ?
Author

RE: Timed 10 - correctness

Euforia33
philalethes



Posts: 881
Location:
Joined: 05.10.09
Rank:
God
Posted on 03-10-18 23:34
I was curious so I forced a similar situation. I cannot see the code but I'm guessing that, by design, it reverts to the 2nd GCD whenever the GCD is equal to the first integer.


Vi veri universum vivus vici.