| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 70594 | sh25_ganzy | 统计满足条件的4位数 | C++ | Accepted | 0 MS | 256 KB | 367 | 2025-10-18 17:54:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,g,s,b,q,cnt=0;//个,十,百,千 cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; g=a[i]%10; s=a[i]/10%10; b=a[i]/100%10; q=a[i]/1000; if(g>s+b+q){ cnt++; } } cout<<cnt; return 0; }