Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335461 李俞家骅 【C2-3】加权数字和 C++ 通过 100 3 MS 244 KB 178 2025-07-23 09:40:05

Tests(2/2):


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


测评信息: