9 条题解
-
-5
#include<stdio.h> #include using namespace std; int main() { int a,b; cin>>a>>b; if((a0&&b1)||(a0&&b-1)||(a0&&b0)) { cout<<"yes"<<endl; }else if((a1&&b1)||(a1&&b-1)||(a1&&b0)) { cout<<"yes"<<endl; }else if((a==-1&&b1)||(a-1&&b==-1)||(a==-1&&b==0)) { cout<<"yes"<<endl; }else { cout<<"no"<<endl; } }
-
-5
#include <queue> #include <math.h> #include <stack> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <algorithm> using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { int x,y; cin>>x>>y; if(x <= 1 && x >= -1 && y >= -1 && y <= 1) { cout <<"yes"; } else { cout <<"no"; } }
- 1
信息
- ID
- 855
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 3
- 标签
- 递交数
- 445
- 已通过
- 245
- 上传者