摘要: 1. 使用bfs时候出现了这种错误 错误写法 void bfs() { priority_queue<int, vector<int>, greater<int> > heap; heap.push(0); for (int i = 0; i <= n; i++) st[i] = false; st 阅读全文
posted @ 2020-09-19 18:26 hulian425 阅读(632) 评论(0) 推荐(0) 编辑
摘要: B - Element Swapping ZOJ - 4101 题意: 题解 可以求得a[i] + a[j] = d2/d1 #include <iostream> #include <string> #include <cstdlib> #include <algorithm> #include 阅读全文
posted @ 2020-09-19 13:51 hulian425 阅读(250) 评论(0) 推荐(0) 编辑