摘要: 在VS2015中直接使用freopen会报错,系统提示使用函数freopen_s作为代替,其使用方法如下: 阅读全文
posted @ 2017-05-31 19:30 Vincent_Bryan 阅读(5397) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int TIME; double X, Y; double MIN; double MIN_X, MIN_Y; double SQRT = sqrt(0.5); double DIR[8][2] = {{1,0}, {SQRT, -1*SQRT}, {0, -1}, {-1*SQRT, -1*SQRT}, ... 阅读全文
posted @ 2017-05-11 17:26 Vincent_Bryan 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 4 struct Vertex{ 5 int start, end; 6 int weight; 7 }; 8 Vertex arr[10000]; 9 int par[10000]; 10 int n, m; 11 int find(int n){ 12 while(par[n... 阅读全文
posted @ 2017-04-29 01:04 Vincent_Bryan 阅读(341) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; struct Vertex{ int start, end; int weight; }; Vertex arr[200010]; int par[200010]; int n, m; long long cost = 0; int find(int n){ while(par[n] != n){ ... 阅读全文
posted @ 2017-04-28 23:48 Vincent_Bryan 阅读(300) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; struct Node{ int val; Node *left; Node *right; Node(){ val = 0; left = NULL; right = NULL; } }arr[200000]; void insert(No... 阅读全文
posted @ 2017-04-24 22:59 Vincent_Bryan 阅读(493) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int t; cin >> t; while(t--){ int s1, s2; cin >> s1 >> s2; int arr1[s1+1], arr2[s2+1]; for(int i = 1; i > arr1[i... 阅读全文
posted @ 2017-04-09 10:32 Vincent_Bryan 阅读(414) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int n; int t = 0; while(cin >> n && n){ int arr[n+1]; memset(arr, 0, sizeof(arr)); for(int i = 1; i > arr[i]; ... 阅读全文
posted @ 2017-04-04 15:59 Vincent_Bryan 阅读(286) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int n; while(cin >> n){ int arr[n]; for(int i = 0; i > arr[i]; int dp[n][n+1]; //使用dp[i][j]代表从第i个数字往后合并j位的最大能量 ... 阅读全文
posted @ 2017-04-04 13:12 Vincent_Bryan 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 题意:给出N,M,问有多少个长度为N的整数序列,满足所有数都在[1,M]内,并且每一个数至少是前一个数的两倍。例如给出N=4, M=10, 则有4个长度为4的整数序列满足条件: [1, 2, 4, 8], [1, 2, 4, 9], [1, 2, 4, 10], [1, 2, 5, 10] 分析:可 阅读全文
posted @ 2017-03-31 21:31 Vincent_Bryan 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 一、下载Filezilla Server 官网网址:https://filezilla-project.org 二、安装Filezilla Server Filezilla Server的安装过程很简单,按照默认提示安装即可。 三、配置FTP服务器 1)打开Filezilla Server Host 阅读全文
posted @ 2017-03-28 01:59 Vincent_Bryan 阅读(41071) 评论(0) 推荐(1) 编辑