Why 1 tc is getting failed?
please reply to this
@garganshul151
Change line 15 to { cout<<-1; return 0;}
Actually when if(load%n!=0) this condition get true, then you need to return. Otherwise max_load also get printed.
please reply to this
@garganshul151
Change line 15 to { cout<<-1; return 0;}
Actually when if(load%n!=0) this condition get true, then you need to return. Otherwise max_load also get printed.