| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74058 | 陈昊然 | 12满足条件的四位数 | C++ | Accepted | 1 MS | 272 KB | 261 | 2024-05-21 19:52:57 |
#include <bits/stdc++.h> using namespace std; int main (){ int u=0,e,t; cin>>e; for(int i=1;i<=e;i++){ cin>>t; int p=t/1000%10; int b=t/100%10; int s=t/10%10; int g=t%10; if(g-p-b-s>0){ u=u+1; } } cout<<u; return 0; }