
1994, University of North Carolina. A sysadmin named Trey Harris gets one of the strangest bug reports ever: the statistics department cannot send email more than 500 miles. Not to certain servers, literally anything past a 500 mile radius bounces. A sendmail upgrade had reset the connection timeout to almost nothing, so mail only reached machines close enough for light to make the trip inside that tiny window. Do the math the mailer stopped doing.
Objective
Given a connection timeout and a target's distance, decide whether the mail is delivered or bounced, the way a too short timeout drew a circle around the campus.
Steps
$ ./main 3000 500000
899377 delivered
$ ./main 3000 2000000
899377 bounced
Expected files
Allowed functions
Loading solutions...