| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130260 | 万嘉宇 | 12满足条件的四位数 | C++ | Accepted | 1 MS | 272 KB | 470 | 2025-09-09 20:13:05 |
#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,s1=0,a,g,s,b,q,d; cin>>n; for(int d=1;d<=n;d++){ cin>>a; g=a%10; s=a%100/10; b=a/100%10; q=a/1000; if(g-s-b-q>0) s1+=1; } cout<<s1; return 0; }