9 solutions
-
1
#include <bits/stdc++.h> using namespace std; int main(int argc, char **argv){ int n,x,sum = 0; cin >> n; for (int i = 0;i < n;i++){ cin >> x; int g,s,b,q; g = x % 10; s = x / 10 % 10; b = x / 100 % 10; q = x / 1000; if ((g - (s + b + q)) > 0){ sum++; } } cout << sum; return 0; }
- 1
Information
- ID
- 567
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 3
- Tags
- # Submissions
- 144
- Accepted
- 75
- Uploaded By