Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
41046 liusiyu 求三位数各数位中最大值 C++ 解答错误 0 MS 248 KB 157 2024-02-19 09:12:25

Tests(0/1):


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


测评信息: