Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163357 武梓萱 12满足条件的四位数 C++ Accepted 1 MS 272 KB 299 2026-10-25 11:31:36

Tests(10/10):


Code:

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