8 条题解

  • 2
    @ 2024-3-17 7:49:00
    #include<bits/stdc++.h>
    #define int long long
    #define endl '\n' 
    using namespace std;
    int a[10000];
    string s1,s2,s3,s4;
    signed main(){
    
    	int a,b,c,d,n,m,i,s=0;
    	scanf("%d",&n);
    	for(i=1;i<=n;++i){
    		scanf("%d",&m);
    		a=m/1000;
    		b=(m/100)%10;
    		c=(m/10)%10;
    		d=m%10;
    		if(d-a-b-c>0){
    			s++;
    		}
    	}	
    	printf("%d\n",s);	
    	return 0;
    }
    
    • 0
      @ 2024-4-19 16:50:03

      #include<bits/stdc++.h> using namespace std; int main(){ int n,x,y=0; cin>>n; for(int q=1;q<=n;q++){ cin>>x; if((x%10)-(x/100%10)-(x/10%10)-(x/1000%10)>0){ y++; } }cout<<y; return 0; }

      • 0
        @ 2024-4-8 20:27:01
        #include<bits/stdc++.h>
        #define int long long
        #define endl'\n' 
        using namespace std;
        int a[10000];
        string s1,s2,s3,s4;
        signed main(){
        	int a,b,c,d,n,m,s=0;
        	scanf("%d",&n);
        	for(int i=1;i<=n;i++){
        		scanf("%d",&m);
        		a=m/1000;
        		b=(m/100)%10;
        		c=(m/10)%10;
        		d=m%10;
        		if(d-a-b-c>0){
        			s++;
        		}
        	}	
        	printf("%d\n",s);	
        	return 0;
        }
        
        • 0
          @ 2024-3-10 10:36:31
          #include<bits/stdc++.h>
          #define int long long
          #define endl '\n' 
          using namespace std;
          int a[10000];
          string s1,s2,s3,s4;
          signed main(){
          
          	int a,b,c,d,n,m,i,s=0;
          	scanf("%d",&n);
          	for(i=1;i<=n;++i){
          		scanf("%d",&m);
          		a=m/1000;
          		b=(m/100)%10;
          		c=(m/10)%10;
          		d=m%10;
          		if(d-a-b-c>0){
          			s++;
          		}
          	}	
          	printf("%d\n",s);	
          	return 0;
          }
          
          • 0
            @ 2024-2-15 10:26:56
            #include<bits/stdc++.h>
            #define int long long
            #define endl '\n' 
            using namespace std;
            int a[10000];
            string s1,s2,s3,s4;
            signed main(){
            
            	int a,b,c,d,n,m,i,s=0;
            	scanf("%d",&n);
            	for(i=1;i<=n;++i){
            		scanf("%d",&m);
            		a=m/1000;
            		b=(m/100)%10;
            		c=(m/10)%10;
            		d=m%10;
            		if(d-a-b-c>0){
            			s++;
            		}
            	}	
            	printf("%d\n",s)	
            	return 0;
            }
            
            • -1
              @ 2024-4-7 17:42:00
              1. #include<bits/stdc++.h> using namespace std; int main(){ int n,a,g,s,b,q,cnt=0; cin>>n; for(int i = 1;i<=n;i++){ cin>>a; g = a%10; s = a/10%10; b = a/100%10; q = a/1000; if(g-q-b-s>0){ cnt++; } } cout<<cnt; return 0; } 纯手工无添加
              • -1
                @ 2024-3-24 11:24:32

                #include<bits/stdc++.h> #define int long long #define endl '\n' using namespace std; int a[10000]; string s1,s2,s3,s4; signed main(){

                int a,b,c,d,n,m,i,s=0;
                scanf("%d",&n);
                for(i=1;i<=n;++i){
                	scanf("%d",&m);
                	a=m/1000;
                	b=(m/100)%10;
                	c=(m/10)%10;
                	d=m%10;
                	if(d-a-b-c>0){
                		s++;
                	}
                }	
                printf("%d\n",s);	
                return 0;
                

                }

                • -1
                  @ 2024-3-17 10:43:54

                  #include<bits/stdc++.h> using namespace std; int main(){ int n,i=1,sum=0,o; cin>>n; while(i<=n){ i++; cin>>o; if(o%10-o/10%10-o/100%10-o/1000%10>0){ sum=sum+1; } } cout<<sum; return 0; }

                  • 1

                  信息

                  ID
                  1242
                  时间
                  1000ms
                  内存
                  128MiB
                  难度
                  3
                  标签
                  (无)
                  递交数
                  358
                  已通过
                  197
                  上传者