摘要: ``` #include #include #include #include using namespace std; const int N = 1010; int k, n, m, S, E; //距离 int g[N][N]; int res[N][N]; void mul(int c[][N], int a[][N], int b[][N]) { static int temp[N][N 阅读全文
posted @ 2020-04-26 20:50 晴屿 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ``` //无论a到b 和 b到c 有没有重合 //都可以写为 //a->x->b->x->c #include #include #include #include #include using namespace std; typedef long long ll; char buf[1'9') { if(ch=='-')f=-1; ch=getc(); } while(ch>='0'&&ch 阅读全文
posted @ 2020-04-26 10:00 晴屿 阅读(91) 评论(0) 推荐(0) 编辑