4 solutions
- 1
Information
- ID
- 544
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- # Submissions
- 40
- Accepted
- 35
- Uploaded By
#include<bits/stdc++.h>
using namespace std;
int x,y;
int main(){
cin>>x>>y;
if(x>=-1&&x<=1&&y>=-1&&y<=1) cout<<"yes"<<endl;
else cout<<"no";
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int a,b;
int main(){
cin>>a>>b;
if((a>=-1&&a<=1)&&(b>=-1&&b<=1)) cout<<"yes";
else cout<<"no";
}
//简洁的代码,点个赞再走吧
#include<bits/stdc++.h> using namespace std; int main(){ long long a,b; cin>>a>>b; if((a<=1&&a>=-1)&&(b<=1&&b>=-1)){ cout<<"yes"; }else{ cout<<"no"; } }
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.