I am getting WA for test case 0 help me

here is my code which i obviously did not try by myself https://ide.codingblocks.com/s/244061

@sshreya2912
Use long long int, some values might not get stored in int

same problem again https://ide.codingblocks.com/s/244061

@sshreya2912

  1. Increase value of INT_MAX to 10^18. Simple change line 50 to #define INT_MAX 100000000000000000
  2. Line 38 should be ans=min(ans,cnt/occ);
    Make these change, your code will work fine for all testcases.

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.