码迷,mamicode.com
首页 >  
搜索关键字:typedef struct    ( 24378个结果
docker搭建weblogic环境
参考如下: Installing WebLogic 12.1.3 with Docker (easier) If you work on a Linux-based machine as your development environment and you aren't familiar wit ...
分类:Web程序   时间:2021-06-02 12:45:31    阅读次数:0
AVL树, 平衡二叉搜索树, 平衡二叉树
#include <stdio.h> #include <stdlib.h> #include <time.h> #define max(a, b) ((a) > (b) ? (a) : (b)) typedef struct Node { int key, height; struct Node ...
分类:其他好文   时间:2021-06-02 12:24:05    阅读次数:0
[POI2014]HOT-Hotels
考虑先做一个$O(n^2) 的 dp$ $f[i][j]$表示在$i$的子树中,距离当前点为$j$的点数 $g[i][j]$表示在$i$的子树中,两个点$lca$的距离为$d$,他们的$lca$到$i$距离为$d - j$的点对数。 那么怎么转移? \(ans += g[i][0],ans += g ...
分类:其他好文   时间:2021-06-02 12:14:22    阅读次数:0
socket与描述符
1.描述符表与socket 每个socket都有一个描述符,指向对应socket的结构,但是对这个sockfd的读写是怎么和缓冲区以及文件连接起来的呢? 数据结构: https://www.kernel.org/doc/htmldocs/networking/API-struct-socket.ht ...
分类:其他好文   时间:2021-05-25 18:31:55    阅读次数:0
leetcode 200 岛屿数量
简介 使用BFS算法 不知道莫名超时了 code class Solution { public: struct point{ int i; int j; point(int i_, int j_){ i = i_; j = j_; } }; void bfs(int i, int j, vecto ...
分类:其他好文   时间:2021-05-25 18:29:12    阅读次数:0
Codeforces Round #722 (Div. 2)
题目:https://codeforc.es/contest/1529 A. Eshag Loves Big Arrays 题意:略 题解:发现随便取两个不同的数,一定可以删掉大的那个数。所以最后留下的肯定是最小的所有数。 #include<iostream> #include<algorithm> ...
分类:其他好文   时间:2021-05-25 18:14:45    阅读次数:0
每日LeetCode - 101. 对称二叉树(C语言)
C语言 #include "stdbool.h" #define NULL ((void *)0) //Definition for a binary tree node. struct TreeNode { int val; struct TreeNode *left; struct TreeNo ...
分类:编程语言   时间:2021-05-25 17:51:01    阅读次数:0
最小费用最大流
#include<bits/stdc++.h> using namespace std; typedef long long ll; namespace MCMF { const int MAXN = 10000, MAXM = 10000, INF = 0x7fffffff; int head[M ...
分类:其他好文   时间:2021-05-25 17:42:56    阅读次数:0
联合体结合位域使用技巧
偶然在代码中看到这样一个定义: typedef union { unsigned char byte; /**< the whole byte */ struct { unsigned int retain : 1; /**< retained flag bit */ unsigned int qo ...
分类:其他好文   时间:2021-05-24 16:41:35    阅读次数:0
C语言速记6(结构体)
结构体写法形式有点像枚举,本身意义更像数组,但可以是一组不同类型的数据。 1,用结构体表示一本书的数据: struct Books { char title[50]; char author[50]; char subject[100]; int book_id; } book; 结构体的形式: s ...
分类:编程语言   时间:2021-05-24 15:27:15    阅读次数:0
24378条   上一页 1 ... 9 10 11 12 13 ... 2438 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!