![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cpc
君_陌
修行者
展开
-
C语言实现链表的创建
#include <stdio.h> #include <stdlib.h> typedef struct Node{ int data; struct Node *next; }Node; Node *CreatH(); //尾插法建立链表 Node * CreatH1(); // 头插法建立链表 void...原创 2020-04-03 10:05:10 · 1373 阅读 · 0 评论 -
cpc--拿糖果
分为两类: 第一类: 编号之前的最后一个元素 , 第二类 : 编号之后的最小元素 两者之差就是结果: #include<bits/stdc++.h> using namespace std; int w[100010]; int main() { int i,j,n; while(~scanf("%d",&n)) { int ...原创 2019-04-07 17:53:22 · 175 阅读 · 0 评论