Code for the problem Rank Realization

Revision en2, by divyanshchauhan, 2024-02-01 08:16:22
#include <bits/stdc++.h>
using namespace std;
int main(){
     int d,t,temp;
     cin>>d;
     cin>>t;
     int res=0;
     for(int i=0;i<t;i++){
        cin>>temp;
        if(temp>d){
           res++;
        }
     }
     cout<<res;
}

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English divyanshchauhan 2024-02-01 08:16:22 20
en1 English divyanshchauhan 2024-02-01 08:14:54 290 Initial revision (published)