Run ID:119287

提交时间:2025-05-17 12:37:33

#include<bits/stdc++.h> using namespace std; int main(){ long long s,x,y,a=0,q,w,e,r; cin>>x; for(s=1;s<=x;s++){ cin>>y; q=y%10; w=y/10%10; e=y/100%10; r=y/1000; if(q-(r+w+e)>0) a+=1; } cout<<a; return 0; }