UOJ87 mx的仙人掌 这里没有用传统的方点外接圆点的做法,而是方点虚树上儿子跳到方点所在环上单调队列处理,本质上是一样的. code //爽! #include<bits/stdc++.h> using namespace std; typedef long long ll; const int ...
分类:
其他好文 时间:
2021-02-06 12:15:50
阅读次数:
0
1 #include<iostream> 2 #include<cstdio> 3 #include<cstdlib> 4 #include<algorithm> 5 using namespace std; 6 7 int n,tot,a[1010],c[1010]; 8 9 int main() ...
分类:
其他好文 时间:
2021-02-06 12:13:59
阅读次数:
0
#include <iostream> #include <stdlib.h> using namespace std; typedef int DataType; //使int重命名为DataType DataType flag = 0; //flag是用来判断神魔时候输入数据结束 typedef ...
分类:
其他好文 时间:
2021-02-06 11:52:00
阅读次数:
0
//八皇后#include<bits/stdc++.h>using namespace std;int a[9];bool b[9],c[17],d[17];int num;int print(){ num++; for(int i=1;i<=8;i++) cout<<"("<<i<<","<<a[ ...
分类:
其他好文 时间:
2021-02-05 10:58:33
阅读次数:
0
import threading import gitlab import xlwt #获取所有的user def getAllUsers(): usersli = [] client = gitlab.Gitlab(private_host, private_token=private_token ...
分类:
编程语言 时间:
2021-02-05 10:40:09
阅读次数:
0
P3052 [USACO12MAR]Cows in a Skyscraper G 预处理出每种状态的体积和,然后枚举子集转移。 时间复杂度 \(O\left(3^n\right)\)。 code: #include<bits/stdc++.h> using namespace std; #defin ...
分类:
其他好文 时间:
2021-02-05 10:29:05
阅读次数:
0
暴力朴素无优化写法: #include<bits/stdc++.h> using namespace std; const int maxn=1e3+5; int dp[maxn][maxn]; int v[maxn],w[maxn]; int main(){ int n,m;scanf("%d%d ...
分类:
其他好文 时间:
2021-02-04 12:02:33
阅读次数:
0
1.拷贝构造函数代码: 当类对象用于值传递时,会调用拷贝构造函数 #include<iostream> using namespace std; class CExample { private: int a; public: //构造函数 CExample(int b) { a=b; printf ...
分类:
编程语言 时间:
2021-02-04 11:44:47
阅读次数:
0
循环 1 #include<iostream> 2 3 using namespace std; 4 int main() 5 { 6 int my_array[] = { 1,2,3,4,5,6,7,8 }; 7 // 不会改变 my_array 数组中元素的值 8 // x 将使用 my_arr ...
分类:
编程语言 时间:
2021-02-04 11:44:06
阅读次数:
0
方法一:使用重定向的方法读取数据 #define LONG using namespace std; int main() { #ifdef LONG freopen("P5744_1.in", "r", stdin); freopen("P5744_1.out", "w", stdout); #e ...
分类:
其他好文 时间:
2021-02-03 10:58:58
阅读次数:
0