You are viewing a single comment's thread. Return to all comments →
int main() { int n,k,i,a[max],max1,j; scanf("%d\t%d",&n,&k); for(i=0;imax1) { max1=a[i]; } } j=max1-k; if(j<0) { printf("0"); } else { printf("%d",j); } return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
The Hurdle Race
You are viewing a single comment's thread. Return to all comments →
include
include
define max 100
int main() { int n,k,i,a[max],max1,j; scanf("%d\t%d",&n,&k); for(i=0;imax1) { max1=a[i]; } } j=max1-k; if(j<0) { printf("0"); } else { printf("%d",j); } return 0; }