Please read the new rule regarding the restriction on the use of AI tools. ×

divyanshchauhan's blog

By divyanshchauhan, history, 8 months ago, In English
#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;
}

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it