题解 | #一大一小#
一大一小
https://ac.nowcoder.com/acm/problem/22009
#include<cstdio>
int main() {
int a,b;
scanf("%d%d",&a,&b);
if(a<b)b+=a,a-=b,b+=a,a=-a;
printf("%d\n%d",a,b);
}
题解 文章被收录于专栏
https://ayx.moefox.tech/
一大一小
https://ac.nowcoder.com/acm/problem/22009
#include<cstdio>
int main() {
int a,b;
scanf("%d%d",&a,&b);
if(a<b)b+=a,a-=b,b+=a,a=-a;
printf("%d\n%d",a,b);
}
https://ayx.moefox.tech/
相关推荐