摘要: 递归版本:(空间贼大)//Menteur_Hxy#include #include #include #define ll long long#define f(a,b,c) for(register int a=(b);a'9') {c=getchar();if(c... 阅读全文
posted @ 2018-05-02 23:12 Menteur_hxy 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目描述 In some countries building highways takes a lot of time… Maybe that’s because there are many possiblities to construct a network ... 阅读全文
posted @ 2018-05-02 15:04 Menteur_hxy 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Examples input 5 5 1 2 1 2 1 3 10 1 1 1 output 3 5 4 4 3 input 4 4 1 2 3 4 9 1 10 6 output 1 4 4 1 Note In the first example:after th... 阅读全文
posted @ 2018-05-02 00:34 Menteur_hxy 阅读(115) 评论(0) 推荐(0) 编辑