14 条题解
-
-1
#include<bits/stdc++.h> using namespace std; int main() { int a,b,sum,x,y,z,n,m; cin>>a>>b; sum=a+b;~ ~ x=sum%10; y=sum/10%10; z=sum/100%10; n=sum/1000%10; m=sum/10000%10; (char) x; (char) y; (char) z; (char) n; (char) m; if(xm&&yn){ cout<<sum<<endl<<"Yes"; }else if(m0&&xn&&yz){ cout<<sum<<endl<<"Yes"; }else if(n0&&m0&&xz){ cout<<sum<<endl<<"Yes"; }else if(z0&&n0&&m0&&xy){ cout~<<sum<<endl<<"Yes"; }else{第五人格启动11111111111 cout<<sum<<endl<<"No"; } return 0;11111 }11
信息
- ID
- 815
- 时间
- 1000ms
- 内存
- 64MiB
- 难度
- 4
- 标签
- 递交数
- 345
- 已通过
- 147
- 上传者