I have no idea why my solution is exceeding the time limit. I've tried for pretty much hours. I even buffered the outputs. I tried saving all the possible answers in an array so that test cases would be instant. I feel like it's unfair to have a question not say how long it takes to run. It couldn't possibly take much longer than one second. I've written algorithms which loop through over a million calculations in under 1 second. I'm just going to wait until that "0.00 second" guy's solution becomes available once the contest is over so I can find out this "mysterious optimization." I can't post any code here because it's against the rules, but I'm looking for sympathy. I drank probably 2-3 bottles of water over this.
↧