提交时间:2023-11-20 21:20:00
运行 ID: 31654
#include <bits/stdc++.h> using namespace std; int main(){ int n, cnt = 0; cin >> n; int a[n]; for(int i = 0; i < n; i++){ cin >> a[i]; int g = a[i] % 10; int s = a[i] / 10 % 10; int b = a[i] / 10 / 10 % 10; int q = a[i] / 10 / 10 / 10 % 10; if(g - s - b - q > 0){ cnt++; } } cout << cnt; return 0; }