ACM
NiuJuxin
这个作者很懒,什么都没留下…
展开
-
基本数据结构
const int SIZE = 10; int info[SIZE], head = 0, tail = 0; //info[] can contain at most (SIZE - 1) elements. //FIFO queue. inline bool empty() { return (head == tail); } inline int size() { return (...原创 2019-11-29 16:13:49 · 146 阅读 · 0 评论 -
20191124 周赛-1 【DFS、BFS、二分法、前缀和】
【1】 洛谷 P1135 #include <iostream> #include <algorithm> #include <string> #include <cmath> using namespace std; const int MAX = 10000000; int N; int K[500]; bool vis[500] = {}; ...原创 2019-11-25 20:01:42 · 163 阅读 · 0 评论