Limits 1s, 512 MB
This problem is authored by one of our late friends, Sifat, who unexpectedly left us last year. He was a brilliant programmer, an astute philosopher and an amazing human being. Had he been with us, he would have been delighted to see this year’s brilliant IUPC coming to life and would wish you good luck for the contest. We sincerely hope you enjoy his problem.
This is a companion discussion topic for the original entry at https://toph.co/p/shine-on-you-crazy-diamond