Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
123550 | 王镜铭 | 12满足条件的四位数 | C++ | Accepted | 1 MS | 276 KB | 249 | 2025-07-06 12:17:59 |
#include<bits/stdc++.h> using namespace std; int main() { int a; cin >> a; int s, d = 0; for (int x = 1; x <= a; x++) { cin >> s; if (s % 10 - s / 1000 - s / 100 % 10 - s / 10 % 10 > 0) { d++; } } cout << d; return 0; }