Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
5374 | 顾郁铭 | 点和正方形的关系 | C++ | 解答错误 | 50 | 0 MS | 248 KB | 263 | 2020-08-01 11:48:54 |
#include<bits/stdc++.h> using namespace std; int x,y; int main(){ cin>>x>>y; if(x==1 && y==1)cout<<"yes"; else if(x==1 && y==-1) cout<<"yes"; else if(x==-1 && y==-1) cout<<"yes"; else if(x==-1 && y==1) cout<<"yes"; else cout<<"no"; return 0; }