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
阅读全文
摘要:#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++) {
阅读全文
摘要:#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秒,
阅读全文
摘要:#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
阅读全文
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; stack <char> oper;//运算符 stack <int> nu
阅读全文
摘要:#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++) {
阅读全文
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int end; bool isDrop; }Tree; vector<Tree> tree; i
阅读全文
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int base; vector<int> subtract; int end; }Tree; v
阅读全文
摘要:#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
阅读全文
摘要:#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
阅读全文
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int index; long long int value; }Point; vector<Po
阅读全文
摘要:#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
阅读全文
摘要:#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
阅读全文
摘要:#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,
阅读全文
摘要:#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; typedef struct { int y; int result;}S; int main() { vector<S> s; i
阅读全文
摘要:#include <iostream> //#include <bits/stdc++.h> #include <string> using namespace std; int main() { int number; cin>>number; int sum=0; int a,b; while(
阅读全文
摘要:一、 对抗搜索的适用范围 在博弈论题目中,如果决策双方的获胜条件是截然相反的,即一方要求得分越高越好,另一方要求得分越低越好,这时我们就可以用上对抗搜索算法。 二、对抗搜索的主要思想 对抗搜索的核心思想就是dfs遍历一遍博弈树。 不难想到,如果博弈树非常庞大,在不加优化的情况下,对抗搜索的时间效率是
阅读全文

浙公网安备 33010602011771号