What’s wrong with this code?
its showing TLE even for the first test case.
Game Theory 2 problem
@abhir26
Line 14
int calcmex(unordered_set st)
Use reference variable for st that is
int calcmex(unordered_set &st)
Still getting TLE! I think there is some logical error. please help.
@abhir26
Issue is with finding factors of number
Your loop is till N/2
It should have been till sqrt(N)
See this for reference https://ide.codingblocks.com/s/243162
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.