| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70836 | sh25_wangsj | 统计满足条件的4位数 | C++ | 通过 | 0 MS | 240 KB | 340 | 2025-10-21 20:33:09 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,g,s,b,q,yes=0; cin>>a; int y; for(int i=0;i<a;i++){ cin>>y; g=y%10; s=(y-g)/10%10; b=(y-g-s)/100%10; q=(y-g-s-b)/1000; if(g>s+b+q){ yes++; } } cout<<yes; return 0; }