摘要: #include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; bool isJump(int x) { // int tempp=x; if(x%7==0) return true; int t 阅读全文
posted @ 2021-02-04 20:02 -Asurada- 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int index; long long int value; }Point; vector<Po 阅读全文
posted @ 2021-02-04 13:06 -Asurada- 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int x;int y;char type; }XY; vector<XY> xy; int th 阅读全文
posted @ 2021-02-03 16:23 -Asurada- 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int x;int y; }XY; XY xy1,xy2; int k;//阈值 int acro 阅读全文
posted @ 2021-02-03 12:20 -Asurada- 阅读(178) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int x;int y;int dis;int no; }XY; int dis(XY temp, 阅读全文
posted @ 2021-02-03 11:00 -Asurada- 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int y; int result;}S; int main() { vector<S> s; i 阅读全文
posted @ 2021-02-02 18:54 -Asurada- 阅读(252) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> //#include <bits/stdc++.h> #include <string> using namespace std; int main() { int number; cin>>number; int sum=0; int a,b; while( 阅读全文
posted @ 2021-02-02 10:43 -Asurada- 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 一、 对抗搜索的适用范围 在博弈论题目中,如果决策双方的获胜条件是截然相反的,即一方要求得分越高越好,另一方要求得分越低越好,这时我们就可以用上对抗搜索算法。 二、对抗搜索的主要思想 对抗搜索的核心思想就是dfs遍历一遍博弈树。 不难想到,如果博弈树非常庞大,在不加优化的情况下,对抗搜索的时间效率是 阅读全文
posted @ 2021-02-01 19:31 -Asurada- 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 //#include <bits/stdc++.h> 3 #include <string> 4 5 using namespace std; 6 7 int main() 8 { 9 int number; 10 int sum=0; 11 int 阅读全文
posted @ 2021-01-05 16:12 -Asurada- 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 //#include <bits/stdc++.h> 3 #include <string> 4 5 using namespace std; 6 7 typedef struct { 8 int location; 9 int foreOrback; 阅读全文
posted @ 2021-01-05 16:10 -Asurada- 阅读(142) 评论(0) 推荐(0) 编辑