摘要:
#include using namespace std;typedef struct node{ int data2; int data1;//mu struct node *next;} ;int main(){ int n; str... 阅读全文
posted @ 2018-10-11 21:08
Mercury_Lc
阅读(204)
评论(0)
推荐(0)
摘要:
#include using namespace std;typedef struct node{ int data; struct node *next, *last;} Node;int main(){ int n, m, a; scanf... 阅读全文
posted @ 2018-10-11 21:07
Mercury_Lc
阅读(116)
评论(0)
推荐(0)
摘要:
#include using namespace std;typedef struct node{ int data; struct node *next, *last;} Node;int main(){ int n, m, a; scanf... 阅读全文
posted @ 2018-10-11 21:07
Mercury_Lc
阅读(92)
评论(0)
推荐(0)
摘要:
#include using namespace std;typedef struct node{ int data; struct node *next, *last;} Node;int main(){ int n, m, a; scanf... 阅读全文
posted @ 2018-10-11 21:07
Mercury_Lc
阅读(175)
评论(0)
推荐(0)
摘要:
#include using namespace std;typedef struct node{ int data; struct node* next;} Node;Node* Createlist(int n){ Node* head,*p; ... 阅读全文
posted @ 2018-10-11 21:06
Mercury_Lc
阅读(121)
评论(0)
推荐(0)
摘要:
#include using namespace std;typedef struct node{ int data; struct node* next;} Node;Node* Createlist(int n){ Node* head,*p; ... 阅读全文
posted @ 2018-10-11 21:06
Mercury_Lc
阅读(151)
评论(0)
推荐(0)
摘要:
#include using namespace std;struct node{ int data; struct node *next;};int main(){ int n; struct node *head,*tail,*p,*q,*... 阅读全文
posted @ 2018-10-11 21:06
Mercury_Lc
阅读(105)
评论(0)
推荐(0)
摘要:
#include using namespace std;struct node{ int data; struct node *next;};int main(){ int n; struct node *head,*tail,*p,*q,*... 阅读全文
posted @ 2018-10-11 21:06
Mercury_Lc
阅读(174)
评论(0)
推荐(0)
摘要:
#include using namespace std;struct node{ int data; struct node *next;};struct node *crea(int n){ int i; struct node *head... 阅读全文
posted @ 2018-10-11 21:05
Mercury_Lc
阅读(132)
评论(0)
推荐(0)
摘要:
#include using namespace std;struct node{ int data; struct node *next;};struct node *crea(int n){ int i; struct node *head... 阅读全文
posted @ 2018-10-11 21:05
Mercury_Lc
阅读(286)
评论(0)
推荐(0)
摘要:
#include using namespace std;struct node{ int data; struct node *next;};struct node *crea(int n){ int i; struct node *head... 阅读全文
posted @ 2018-10-11 21:05
Mercury_Lc
阅读(108)
评论(0)
推荐(0)
摘要:
#include using namespace std;struct node{ int data; struct node *next;};struct node *creat(int n) { struct node *head,*... 阅读全文
posted @ 2018-10-11 21:04
Mercury_Lc
阅读(376)
评论(0)
推荐(0)
摘要:
#include using namespace std;struct node{ int data; struct node *next;};struct node *creat(int n) { struct node *head,*... 阅读全文
posted @ 2018-10-11 21:04
Mercury_Lc
阅读(124)
评论(0)
推荐(0)
摘要:
题目链接题解:用二分查询一下每次满足长度的下一个加上它的长度。#include using namespace std;typedef long long ll;ll a[500005];ll b[500005] = {0};int main(){ ll n,i... 阅读全文
posted @ 2018-10-11 20:56
Mercury_Lc
阅读(194)
评论(0)
推荐(0)
摘要:
lower_bound( )和upper_bound( )都是利用二分查找的方法在一个排好序的数组中进行查找的。在从小到大的排序数组中,lower_bound( begin,end,num):从数组的begin位置到end-1位置二分查找第一个大于或等于num的数字,... 阅读全文
posted @ 2018-10-11 20:40
Mercury_Lc
阅读(156)
评论(0)
推荐(0)
摘要:
题目链接#include using namespace std;typedef long long ll;int a[200005]; //存放原始数据int vis[200005]; //标记选的对手int b[200005]; //答案序列queueq; /... 阅读全文
posted @ 2018-10-11 20:00
Mercury_Lc
阅读(133)
评论(0)
推荐(0)
摘要:
题目链接:Central Europe Regional Contest 2015 Zagreb, November 13-15, 2015D、Digit Division(排列组合+思维)题解:如果这个数从划分的过程中第一、二道竖线前的能够整除m,那么第一道与第二道... 阅读全文
posted @ 2018-10-11 18:52
Mercury_Lc
阅读(129)
评论(0)
推荐(0)

浙公网安备 33010602011771号