Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
48269 王子诺 【基础题】三位数 C++ Accepted 3 MS 272 KB 226 2023-05-23 21:19:00

Tests(4/4):


Code:

# include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a; b=a/100; c=a%10; d=a/10%10; if(c>0)cout<<c; if((c>0&&d==0)||(d>0))cout<<d; if(b>0)cout<<b; return 0; }