3 条题解

  • 1
    @ 2023-4-12 21:17:06

    #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
    上传者