02 2021 档案

摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int array[1000006]= {0}; int main() { int n; int sum=0; cin>>n; in 阅读全文
posted @ 2021-02-18 21:34 -Asurada- 阅读(108) 评论(0) 推荐(0)
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; vector<int> a; for(int i=0;i<n;i++) { 阅读全文
posted @ 2021-02-18 20:57 -Asurada- 阅读(115) 评论(0) 推荐(0)
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int r,y,g; void change(long long int sum,int &k,int &t)//最开始显示为t秒, 阅读全文
posted @ 2021-02-17 23:30 -Asurada- 阅读(157) 评论(0) 推荐(0)
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int r,y,g; cin>>r>>y>>g; int n; cin>>n; int sum=0; wh 阅读全文
posted @ 2021-02-17 21:29 -Asurada- 阅读(110) 评论(0) 推荐(0)
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; stack <char> oper;//运算符 stack <int> nu 阅读全文
posted @ 2021-02-07 22:40 -Asurada- 阅读(126) 评论(0) 推荐(0)
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; vector<int> v; for(int i=0;i<n;i++) { 阅读全文
posted @ 2021-02-07 20:14 -Asurada- 阅读(126) 评论(0) 推荐(0)
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int end; bool isDrop; }Tree; vector<Tree> tree; i 阅读全文
posted @ 2021-02-06 12:49 -Asurada- 阅读(124) 评论(0) 推荐(0)
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int base; vector<int> subtract; int end; }Tree; v 阅读全文
posted @ 2021-02-06 12:06 -Asurada- 阅读(135) 评论(0) 推荐(0)
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; vector<Point> xy; int a=0,b=0,c=0,d=0,e=0; void isJudge(Point temp 阅读全文
posted @ 2021-02-05 13:41 -Asurada- 阅读(145) 评论(0) 推荐(0)
摘要:#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- 阅读(104) 评论(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- 阅读(123) 评论(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- 阅读(135) 评论(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- 阅读(257) 评论(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- 阅读(214) 评论(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- 阅读(276) 评论(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- 阅读(155) 评论(0) 推荐(0)
摘要:一、 对抗搜索的适用范围 在博弈论题目中,如果决策双方的获胜条件是截然相反的,即一方要求得分越高越好,另一方要求得分越低越好,这时我们就可以用上对抗搜索算法。 二、对抗搜索的主要思想 对抗搜索的核心思想就是dfs遍历一遍博弈树。 不难想到,如果博弈树非常庞大,在不加优化的情况下,对抗搜索的时间效率是 阅读全文
posted @ 2021-02-01 19:31 -Asurada- 阅读(174) 评论(0) 推荐(0)