MEX Dividend

Limits 1s, 512 MB

We define MEX Dividend of an array as the smallest positive integer not present in the array which is divisible by at least one of the elements of the array.


This is a companion discussion topic for the original entry at https://toph.co/p/mex-dividend

@hjr265 see the Submission 917191. I got to pass the tests in exactly 1.0s but it should’ve given me TLE right? why this kinda thing happened?

1 Like

Unless your CPU usage goes over the limit, it won’t yield that verdict.