| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 78257 | sh25_shengmy | 统计满足条件的4位数 | C++ | Accepted | 0 MS | 248 KB | 535 | 2025-12-26 15:32:43 |
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector<int> numbers(n); int count = 0; for (int i = 0; i < n; i++) { cin >> numbers[i]; int num = numbers[i]; int thousand = num / 1000; int hundred = (num / 100) % 10; int ten = (num / 10) % 10; int unit = num % 10; if (unit - thousand - hundred - ten > 0) { count++; } } cout << count << endl; return 0; }