Jump to content

Problem of the ACM

Featured Replies

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

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.

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.