16 条题解

  • 0
    @ 2025-11-10 17:37:01

    #include<iostream> #include<stack> using namespace std; int main(){ int n; cin>>n; stack<int> st; while(n>0){ int yu=n%10; st.push(yu); n=n/10; } while(st.top()==0){ st.pop(); } int t=1; while(!st.empty()){ n+=st.top()t; t=10; st.pop(); } cout<<n; }

    信息

    ID
    27
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    递交数
    6199
    已通过
    2053
    上传者