Jump to content

Problem of the ACM


james321

Recommended Posts

Hi

Could you help me find some mathematical solution to this problem?
It would also be of great help if they could give some solution at the level of programming language (java).
Thanks.

post-128318-0-65219700-1491957078_thumb.png

Edited by james321
Link to comment
Share on other sites

You have to use brute force testing each possibility. I would recommend doing this on Linux and making use of long or the big integer class. Note the speed of your code is important. Where possible make use of primitives and avoid using class variables.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.