上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页
摘要: ```cpp #include #include using namespace std; long long f[400]; int main() { long long n; scanf("%lld",&n); long long m=(n+1)*n/2; if(m%2==1) { printf("0\n"); return 0; } m=m/2; f[0]=1; ... 阅读全文
posted @ 2019-06-08 20:50 ShineEternal 阅读(172) 评论(0) 推荐(0) 编辑
摘要: ```cpp include include using namespace std; int a[201],b[201]; int main() { int sum=0; int m,s,c; scanf("%d%d%d",&m,&s,&c); for(int i=1;ic) { printf(" 阅读全文
posted @ 2019-06-08 09:34 ShineEternal 阅读(176) 评论(0) 推荐(0) 编辑
摘要: ```cpp include include include using namespace std; struct edge { int to,val; }; priority_queue,vector ,greater q; vectore[2505]; int dis[2505]; int v 阅读全文
posted @ 2019-06-07 11:14 ShineEternal 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 链接: https://www.luogu.org/problemnew/show/P1948 bfs+剪枝即可 代码: cpp include include include include include using namespace std; struct edge { int to,dis 阅读全文
posted @ 2019-06-05 19:32 ShineEternal 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题面: 设计一个int类型的动态链表L,L中有一个代表当前位置的光标,支持下列操作: insert(x): 在光标前面插入元素x,插入后光标指向新插入的元素x move(d): 如果d为正数,则光标向尾部移动d个位置,如果为负数,则向头部移动 erase(): 删除光标当前指向的元素,完成后光标向尾 阅读全文
posted @ 2019-05-28 20:11 ShineEternal 阅读(284) 评论(3) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-05-27 19:01 ShineEternal 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-27 18:59 ShineEternal 阅读(18) 评论(1) 推荐(0) 编辑
摘要: 题目链接: https://www.luogu.org/problemnew/show/P2880 分析: ST表实现即可,一个最大值数组和最小值数组同时维护 代码: include include include include using namespace std; int LOG2[5000 阅读全文
posted @ 2019-05-26 16:40 ShineEternal 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 换电脑祭 换电脑祭 换电脑祭 换电脑祭 阅读全文
posted @ 2019-05-25 17:56 ShineEternal 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 本文为转载文章 1.关于list容器 list是一种序列式容器。list容器完成的功能实际上和数据结构中的双向链表是极其相似的,list中的数据元素是通过链表指针串连成逻辑意义上的线性表,也就是list也具有链表的主要优点,即:在链表的任一位置进行元素的插入、删除操作都是快速的。list的实现大概是 阅读全文
posted @ 2019-05-25 10:47 ShineEternal 阅读(535) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页