Run ID:75282
提交时间:2024-05-26 15:48:38
#include <bits/stdc++.h> using namespace std; int main() { int n, z, gd = 0; cin >> n; for (int i = 1; i <= n; i++) { cin >> z; int g = z % 10; int s = z / 10 % 10; int b = z / 100 % 10; int q = z / 1000 % 10; if (g - s - b - q > 0) { gd++; } } cout << gd; return 0; }