here is my code which i obviously did not try by myself https://ide.codingblocks.com/s/244061
I am getting WA for test case 0 help me
- Increase value of INT_MAX to 10^18. Simple change line 50 to #define INT_MAX 100000000000000000
- 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.