提交时间:2025-08-06 11:12:18

运行 ID: 338144

#include<bits/stdc++.h> using namespace std; int n,x,c,i=1; int main(){ cin>>x; while(x){ c+=x%10*i; x/=10; i++; } cout<<c; return 0; }