最后开long long过了, 心累, 摸了, 明天再写 # include <iostream> # include <cstdio> # include <cstring> # define LL long long # define MAXN 22 using namespace std; i ...
分类:
其他好文 时间:
2020-07-10 18:35:17
阅读次数:
50
1 #include<iostream> 2 #include<cstring> 3 using namespace std; 4 int main() 5 { 6 7 int h, s; 8 string str;//或 char str[105] 9 cin>>h>>s; 10 cin>>str ...
分类:
其他好文 时间:
2020-07-10 15:43:58
阅读次数:
71
用lct中的access操作来维护链。因为每一次更新到根节点所以不用split操作。 注意下传标记和统计的时候影响。 #include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> ...
分类:
其他好文 时间:
2020-07-10 15:32:17
阅读次数:
70
#Code-C++-Cut CString to get keyValue by ","||"}" July 10, 2020 2:19 AM // cut CString to get keyValue void GetKeyValue(CString strSource, CString str ...
分类:
编程语言 时间:
2020-07-10 09:43:09
阅读次数:
52
只需要用二进制来表示50个数,这样不会超过ll范围 之后按照dfs建树后建线段树维护 #include<iostream> #include<algorithm> #include<stack> #include<vector> #include<cstring> using namespace s ...
分类:
其他好文 时间:
2020-07-10 00:39:02
阅读次数:
94
#Code-Output File-Two Way July 9, 2020 9:25 PM ##1.使用ofstream 输出 #include <fstream> SYSTEMTIME st; GetLocalTime(&st); CString strTime; strTime.Format( ...
分类:
其他好文 时间:
2020-07-09 22:11:03
阅读次数:
73
模板 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<complex> #define maxn 4000010 #define PI (acos(-1.0)) using namespac ...
分类:
其他好文 时间:
2020-07-09 12:31:09
阅读次数:
80
最短路模型 #include<cstring> #include<iostream> #include<algorithm> using namespace std; typedef pair<int,int> PII; const int N = 110; int n,m; int g[N][N] ...
#include <iostream> #include <cstring> using namespace std; int lowbit(int n) { return n - (n & (n - 1)); } /** * 原始数组的i位置增加v后,更新c数组 */ void update(in ...
分类:
编程语言 时间:
2020-07-08 19:53:22
阅读次数:
47
gate 用时:debug时间90分钟。 先读m再读n 我是傻逼(1/1) 题目大意: 有$m$个房子,$n$个顾客。第$i$个房子里有$a_i$只猪;第$i$个顾客可以买至多$b_i$只猪,且可以打开房子$c_1,c_2,...c_j$,这些同时被打开的房子中,剩余的猪的可以互相转移。求最多卖出的 ...
分类:
其他好文 时间:
2020-07-08 13:42:53
阅读次数:
55