摘要: #include<bits/stdc++.h> #include<vector> using namespace std; struct node{ int x,y; }; int main() { int n,a,b; cin>>n>>a>>b; long long innerProduct=0; 阅读全文
posted @ 2021-03-27 22:38 南理工学渣 阅读(54) 评论(0) 推荐(0)
摘要: 简单题: 唯一需要注意的就是我们不能只判断一种点,需要两种点都进行判断,否则会出现A点在一侧,B点在两侧的情况 /*线性分类器*/ #include<bits/stdc++.h> #include<vector> using namespace std; struct node { int x,y; 阅读全文
posted @ 2021-03-27 21:20 南理工学渣 阅读(70) 评论(0) 推荐(0)
摘要: 简单题,就是不明白,为什么相同的代码在不同时间却答案不同 #include<bits/stdc++.h> using namespace std; int xl,yd,xr,yu; bool in(int x,int y) { return xl<=x && x<=xr && yd<=y && y< 阅读全文
posted @ 2021-03-27 20:37 南理工学渣 阅读(77) 评论(0) 推荐(0)