Shopping game()failing all cases

please tell my mistake…
#include
using namespace std;
int main() {
int t;
cin>>t;
while(t–){
int aayush_max, harshit_max;
cin>>aayush_max>>harshit_max;

	int aayush_count = 0;
	int harshit_count = 0;
	for (int i = 1;; i++) {
		if (i % 2 == 0) {
			if (harshit_count + i <= harshit_max) {
				harshit_count = harshit_count + i;
			} else {
				cout<<"Aayush"<<endl;
				break;
			}
		} else {
			if (aayush_count + i <= aayush_max) {
				aayush_count = aayush_count + i;
			} else {
				cout<<"Harshit"<<endl;
				break;
			}
		}
	}
}

}

what happened…???

hi @abhinavssr2003_eab0717682969e5c,
actually im not getting this question in hackerblock or anywhere else ive asked concerned person to give me the question… so please try to cooperate i’ll tell as soon as possible

okay no issue sir…but do tell me where i am doing mistake…only 1 test case is failing

@abhinavssr2003_eab0717682969e5c, its passing all test cases

but my one case was failing

@abhinavssr2003_eab0717682969e5c try again

Now it passed…i am not getting why one test was failing earlier…thank you sir

@abhinavssr2003_eab0717682969e5c mayb server side issue u can mark this as resolved now

Already resolved sir…

1 Like

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.