Update

One new tab added. Open in browser view if it is not visible. (25/08/2022 08:48)

Change It

Problem Code:
CHNGIT

Contest Code:Practice
Submission byrashmi1729
Submitted: 6 days ago

Status:
Correct Answer


Language : C
(NOTE : Try a few times yourself before moving to the solution)


#include <stdio.h>
int main(void) {
	
	int t;
	
	scanf("%d",&t);
	while(t--)
	{
	    int n,cnt = 0;
	    int k = 0;
	    scanf("%d",&n);
	    int A[n];
	    for(int i=0;i=cnt)
	    {
	        cnt=k;
	    }
	}
	printf("%d\n",(n - cnt));
}

	return 0;
}

No comments: