Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7977 刘逸杭 满足条件四位数的个数 C++ Accepted 0 MS 268 KB 220 2025-05-31 20:12:40

Tests(10/10):


Code:

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