提交时间:2024-10-18 15:19:54
运行 ID: 53091
#include<bits/stdc++.h> using namespace std; int main() { int n, m=0; cin >> n; for(int i=1;i<=n;i++){ int num; cin>>num; int thou = num/1000; int hun = (num-thou*1000)/100; int ten = (num-thou*1000-hun*100)/10; int one = num%10; if(one-ten-hun-thou > 0){ m+=1; } }cout << m; return 0; }