随笔分类 - 模板
摘要:可以计算负权边的dijkstra //最小费用流Dijkstra算法 //Dijkstra算法求最小费用流核心代码: //h[MAX_V]:导入势保证所有边均为非负边 O(FElogV) int min_cost_flow(int n, int v, int s, int t, int f) { i
阅读全文
摘要:https://www.luogu.org/problemnew/show/P1604 题目背景 进制题目,而且还是个计算器~~ 题目描述 话说有一天,小Z乘坐宇宙飞船,飞到一个美丽的星球。因为历史的原因,科技在这个美丽的星球上并不很发达,星球上人们普遍采用B(2<=B<=36)进制计数。星球上的人
阅读全文
摘要:1.c++高精度 http://blog.csdn.net/code4101/article/details/23020525 手写高精度乘法 #include<bits/stdc++.h> using namespace std; string a1,b1; int jw=0,lena,lenb,
阅读全文