| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61952 | 夏梓瑞 | 12满足条件的四位数 | C++ | Accepted | 1 MS | 272 KB | 305 | 2023-12-16 15:05:01 |
#include<iostream> using namespace std; int main() { int n,e,a,q,z,w,s=0; cin>>n; for(int i=0;i<n;i=i+1){ cin>>e; a=e%10; q=e%100/10; z=e%1000/100; w=e/1000; if(a-(q+z+w)>0) s=s+1; } cout<<s; return 0; }