摘要: source : Pertozavodsk Winter Training Camp 2016 Day 1: SPb SU and SPb AU Contest, Friday, January 29, 2016 url:https://codeforces.com/gym/100956/attac 阅读全文
posted @ 2019-03-10 21:38 拦路雨偏似雪花 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 教程 http://www.runoob.com/go/go-slice.html Go语言中的管道(Channel)总结 http://www.cnblogs.com/yetuweiba/p/4365488.html make函数的一个例子: make([]int, 10, 100) 分配一个有1 阅读全文
posted @ 2019-02-15 02:00 拦路雨偏似雪花 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 2019.02.01更新:经同学提醒,myprintf函数应有返回值为输出的字符数。 期末的大作业,手写一个myprintf函数,支持如下一些操作。 也就是 % -(负号控制左右对齐) 数(控制字段宽). 数(控制精度) ?(字符,控制类型) 我实现的话就是按上面的实现的,说一下这个简化版存在的问题 阅读全文
posted @ 2018-12-30 12:42 拦路雨偏似雪花 阅读(776) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/acxblog/p/7390301.html luogu p2731 阅读全文
posted @ 2018-12-22 10:44 拦路雨偏似雪花 阅读(194) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/ECJTUACM-873284962/p/6921829.html https://blog.csdn.net/kamisama123/article/details/77649118 下面这篇解释得很清楚。 单个游戏: sg(0)=0 //sg值为0 阅读全文
posted @ 2018-12-21 23:36 拦路雨偏似雪花 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 4 const int N=110; 5 string a[N],b[N],c[N]; 6 7 int main() 8 { 9 //freopen("a.in","r",stdin); 10 int n,m; 11 scanf("%d%d",&n,&m);getline(c... 阅读全文
posted @ 2018-12-13 00:06 拦路雨偏似雪花 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 //#include // if want to use stringstream 3 using namespace std; 4 5 const int N=310; 6 7 struct node{ 8 string c; 9 bool has_c,can_has_c,bk,vis; 10 }a[N]; 11 str... 阅读全文
posted @ 2018-12-12 20:36 拦路雨偏似雪花 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 先更新第一个做法:差分约束 转化成最长路,求出的每一个解是满足差分方程的最小值 spfa求最短路 对于边(x->y) 有: 1 if(dis[y] > dis[x] + a[i].d) dis[y]=dis[x]+a[i].d; dis[y]的初始值为INF,dis[y]会是满足所有约束条件之中所有 阅读全文
posted @ 2018-12-06 16:00 拦路雨偏似雪花 阅读(603) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/f290131665/article/details/17678851 样例1(正确样例):typedef struct tagTest_B TEST_B_S;typedef struct tagTest_A{TEST_B_S *pstB;} TEST_A 阅读全文
posted @ 2018-12-02 21:23 拦路雨偏似雪花 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/zhongzhe/p/3892682.html #的功能是将其后面的宏参数进行字符串化操作(Stringfication),简单说就是在对它所引用的宏变量通过替换后在其左右各加上一个双引号 ##被称为连接符(concatenator),用来将两个Tok 阅读全文
posted @ 2018-11-27 21:23 拦路雨偏似雪花 阅读(293) 评论(0) 推荐(0) 编辑