Run ID:159012
提交时间:2026-08-25 09:32:57
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,x,q,b,s,g,m=0; cin>>n; while(n>=1){ cin>>x; n--; q=x/1000; b=x/100%10; s=x/10%10; g=x%10; if(g-q-b-s>=1){ m++; } } cout<<m; return 0; }