Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4723 死神 05求百位数的每一位数之和 C++ Wrong Answer 0 MS 264 KB 202 2024-09-07 21:01:04

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,d,e; cin>>a; b=a%10; c=a/10%10; d=a/100%10; e=a/1000; cout<<d*1000+e*100+b*10+c<<endl; return 0; }


Run Info:

------Input------
102
------Answer-----
3
------Your output-----
1020