63 条题解

  • -1
    @ 2026-7-20 18:31:00
    #include <bits/stdc++.h>
    using namespace std;
    int n , a , s , f , j;
    int main()
    {
        cin >> n;
        for ( int i = 1; i <= n; i++ )
        {
        	cin >> a;//12345
        	s = s + a / 100;
        	f = f + a % 100 / 10 ;
        	j = j + a % 10;
    	}
    	cout << s << endl << f << endl << j << endl;
    	return 0;
    }
    
    

    信息

    ID
    1
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    递交数
    5258
    已通过
    1484
    上传者