Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7976 | 余立涵 | 满足条件四位数的个数 | C++ | Accepted | 0 MS | 260 KB | 270 | 2025-05-31 20:12:01 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,y=0; cin>>n; while(n--){ int x; cin>>x; x=x%10-x/10%10-x/100%10-x/1000; if(x>0){ y++; } } cout<<y<<endl; return 0; }