最简单的链表 1 typedef struct LNode *List; 2 struct LNode { 3 ElementType Data; 4 List Next; 5 }; 6 struct LNode L; 7 List PtrL; 8 9 //建立 10 11 //求表长 12 int ...
分类:
其他好文 时间:
2021-02-06 11:58:08
阅读次数:
0
1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct PolyNode *Polynomial; 5 struct PolyNode { 6 int coef; 7 int expon; 8 Polynomial link; 9 ...
分类:
其他好文 时间:
2021-02-06 11:57:04
阅读次数:
0
#include <iostream> #include <stdlib.h> using namespace std; typedef int DataType; //使int重命名为DataType DataType flag = 0; //flag是用来判断神魔时候输入数据结束 typedef ...
分类:
其他好文 时间:
2021-02-06 11:52:00
阅读次数:
0
Integral type for representing pointers in a signed integer (useful for hashing, etc.).Typedef for either qint32 or qint64. This type is guaranteed to ...
分类:
其他好文 时间:
2021-02-05 10:54:15
阅读次数:
0
因为数组不能被拷贝,所以函数不能返回数组。不过,函数可以返回数组的指针或引用。 虽然从语法上来说,要想定义一个返回数组的指针或引用的函数比较烦琐,但是有一些方法可以简化这一任务,其中最直接的方法是使用类型别名∶ typedef int arrT[10]; // arrT是一个类型别名,它表示的类型是 ...
分类:
编程语言 时间:
2021-02-05 10:49:00
阅读次数:
0
这可怜的分数 A 点点的圈圈 考场上强转的时候1ll写成了1l,60变28:sob: 将最小包含自己的圆当作父亲,跑一个简单的树形DP就可以求出答案,考虑如何找父亲 扫描线,将扫到的圆的上下面分别加到set里,新加一个点的时候找y坐标第一个比它大的半圆,如果这个半圆是上半圆,那一定是它父亲,否则就是 ...
分类:
其他好文 时间:
2021-02-04 12:07:29
阅读次数:
0
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> typedef struct ListNode{ int val; ListNode* next; }Node_t, *pNode_t; void print_l ...
分类:
编程语言 时间:
2021-02-03 11:00:00
阅读次数:
0
1 bool file_exist(const char *path) 2 { 3 struct stat st; 4 5 return (stat(path, &st) == 0) && (!S_ISDIR(st.st_mode)); 6 } ...
分类:
编程语言 时间:
2021-02-03 10:31:12
阅读次数:
0
https://codeforces.com/problemset/problem/754/D 题意: 给定n组区间,要求选出k组区间保证其交集最大,并输出选出的区间 思路: 区间贪心,优先队列算一下天数即可。 代码: #include<iostream> #include<stdio.h> #in ...
分类:
其他好文 时间:
2021-02-02 10:51:00
阅读次数:
0
1 //生成三种基元 矩形 十字 椭圆 2 cv::Mat my_get_morph_struct_element(cv::MorphShapes shapeType, cv::Size s) 3 { 4 CV_Assert(shapeType == cv::MORPH_RECT || shapeT ...
分类:
其他好文 时间:
2021-02-02 10:35:04
阅读次数:
0