3 条题解

  • 0
    @ 2023-3-4 21:53:26
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int x,s=0;
        cin>>x;
        s+=x/100+x/10%10+x%10;
        cout<<s;
    	return 0;
    }
    
    

    【入门】求任意三位数各个数位上数字的和

    信息

    ID
    63
    时间
    1000ms
    内存
    16MiB
    难度
    1
    标签
    递交数
    95
    已通过
    73
    上传者