摘要:
1.Sequence Decomposing(利用二分函数并贪心寻找最少的升序数串) 原题链接:http://162.14.124.219/contest/1005/problem/C 查看代码 #include <bits/stdc++.h> #define int long long using 阅读全文
摘要:
一:Dijkstra(适用于无向图,但不适于有负边权的图) 1.朴素dijkstra 查看代码 #include<bits/stdc++.h> #define int long long using namespace std; const int N=1000; bool sign[N]; int 阅读全文
摘要:
1.飞机降落(经典dfs,遍历每一种情况,不符返回0,符合返回1,只要有一个返回值1就成立,记得每次都初始化一下标记数组) 查看代码 #include<bits/stdc++.h> #define int long long using namespace std; int n,T,b[15]; s 阅读全文
摘要:
1.H(简单模拟,注意细节) 1 #include<bits/stdc++.h> 2 #define int long long 3 using namespace std; 4 int er[30],q[1000000]; 5 bool cmd(char a,char b,char c) 6 { 阅读全文
摘要:
1.红石难题(将红石线路拉成一条一维的线,再用总线路除一个红石源可满足的能量需求范围,不够进一即可) #include<bits/stdc++.h> #define int long long using namespace std; int a[1000000],b[10000000]; sign 阅读全文