Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123568 袁梓豪 12满足条件的四位数 C++ Accepted 1 MS 272 KB 269 2025-07-06 12:53:57

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n, a, c = 0 ; cin >> n; for (int i = 1; i <= n; i++) { cin >> a; if (a % 10 -a / 1000 -a % 1000 / 100 -a % 1000 % 100 / 10 > 0) c++; } cout << c; return 0; }