You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { int n; cin>>n; int i,j,score[n],min,max,u=0,v=0; for(i=0;i>score[n]; } max=score[0]; min=score[0]; for(j=0;j
} for(j=0;j<n;j++) { if( min>score[j]) { v++; min=score[j]; } } cout<<u<<" "<<v;
} this code is not giving correct answer and logic is simmilar to your code. can you plz explain why?
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
include
include
using namespace std;
int main() { int n; cin>>n; int i,j,score[n],min,max,u=0,v=0; for(i=0;i>score[n]; } max=score[0]; min=score[0]; for(j=0;j
} this code is not giving correct answer and logic is simmilar to your code. can you plz explain why?