rt,为什么#6过不去啊,代码没问题把(不会我太久没写连签到题都不会了吧
#include<bits/stdc++.h>
using namespace std;
int sgn(int n)
{
if(n>0)
{
return 1;
}
if(n<0)
{
return -1;
}
}
int fun(int a,int b)
{
return sgn(b)*abs(a);
}
int main()
{
int a,b;
cin>>a>>b;
cout<<fun(a,b);
return 0;
}