Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7973 | 赖梓乐 | 满足条件四位数的个数 | C++ | Accepted | 0 MS | 256 KB | 409 | 2025-05-31 20:06:29 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,c,i=1,k; cin>>n; for(k=0;i<=n;i++){ cin>>c; if(c%10-c/10%10-c/100%10-c/1000>0) k++; } cout<<k; return 0; }