Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
41382 | wuxinyue | 统计满足条件的4位数 | C++ | Accepted | 1 MS | 256 KB | 244 | 2024-02-20 19:38:26 |
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int sum=0; int i=1; while(i<=n){ int m; cin>>m; if(m%10-(m/10%10)-(m/100%10)-(m/1000%10)>0){ sum++; } i++; } cout<<sum; return 0; }