Two Printers issue using Java - all my variables are BigIntegers

Back to Programming Languages forum

BigAndyD     2017-05-28 23:37:16

I've managed to finally almost crack the two printers problem but I'm have a small problem that's breaking my brain.

235843409 429667410 148695723 68797884 238525558 43843548 489160020 143383758 259241948 15073602 169874177 132280857 329187360 326581671 88384279 169506558 96622732 51947361

235843409 429667410 149158056 68928920 238525558 43843548 489163422 143383758 259241948 15073602 169874177 132280857 329187360 326581671 88384279 169506558 96622732 51947361

top line are the answers and bottom line are my results. As you can see apart from 3 results I'm spot on.

the three lots of data I'm getting wrong are

13517793 7850424 29 -

68797884 8616115 8 -

170203 173461 5693

Can someone please help before I go completely insane?

Quandray     2017-06-03 18:51:10
User avatar

As you've solved problem 23, this may help.

BigAndyD     2017-06-04 20:54:19

Thanks Quandray - I managed to crack it using the difference in differences between value and mod to ascertain which printer would be printing the final sheet.

Please login and solve 5 problems to be able to post at forum