| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70835 | sh25_wangsj | 统计满足条件的4位数 | C++ | 编译错误 | 0 MS | 0 KB | 342 | 2025-10-21 20:32:39 |
#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){ cnt++; } } cout<<cnt; return 0; }