Help me in solving UWCOI20A problem

My issue

why is there error tim limit exceed

My code

#include <stdio.h>
int main() {
	// your code goes here
	int N,T, Mh=0,h;
	scanf("%d",&T); 
	for(int j=0;j<T;j++){
	    scanf("%d",&N);
	}
	for(int i=0;i<N;i++){
	    scanf("%d",&h);
	    if (h>Mh){
	        Mh=h;
	    }
	}
	printf("%d\n",Mh);
}


Learning course: Data Structures & Algorithms using C
Problem Link: Find maximum in an Array in Data Structures & Algorithms using C