Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
47342 陈怡君 【入门】求任意三位数各个数位上数字的和 C++ Accepted 4 MS 272 KB 135 2023-04-25 08:43:55

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { int x; cin>>x; cout<<x/100+x/10%10+x%10<<endl; return 0; }