1 条题解

  • 1
    @ 2026-4-1 12:47:06

    #include<bits/stdc++.h> #define int long long using namespace std; signed main(){ int x,t=0; cin>>x; while(x){ t+=x%10; x/=10; } cout<<t; return 0; }

    • 1

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

    信息

    ID
    1918
    时间
    1000ms
    内存
    16MiB
    难度
    3
    标签
    递交数
    40
    已通过
    32
    上传者