Why?为什么第六个点会WA?
查看原帖
Why?为什么第六个点会WA?
806299
tyyxbx楼主2022/11/29 13:13
#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    if(a!=0){
        if(b>0) cout<<abs(a)<<endl;
        else if(b<0){
            int d=abs(a);
            cout<<-d<<endl;
        }
    }
    else cout<<0;
    return 0;
}
2022/11/29 13:13
加载中...