1 solutions

  • 0
    @ 2025-12-3 8:38:19

    C++ :

    #include<iostream>
    using namespace std;
    long long a,b,c,d,e,f,el,dl,fl;
    int main()
    {    
    	cin>>a;    
    	for(int i=1;i<=a;i++)    
    	{    
    		cin>>b;    
    		d=b/100+c/100;    
    		e=(b-(b-b%100))/10;    
    		f=b-d*100-e*10;    
    		dl+=d;    
    		el+=e;    
    		fl+=f;    
    	}    
    	cout<<dl<<"\n";    
    	cout<<el<<"\n";    
    	cout<<fl<<"\n";    
    	return 0;
    }
    
    • 1

    Information

    ID
    771
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By