摘要:
递归版本:(空间贼大)//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... 阅读全文
摘要:
题目描述 In some countries building highways takes a lot of time… Maybe that’s because there are many possiblities to construct a network ... 阅读全文
摘要:
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... 阅读全文