golang easyjson使用 1.先安装easyjson go get -u github.com/mailru/easyjson/ 2.在结构体上加//easyjson:json的注解 //easyjson:json type School struct { Name string `jso ...
分类:
Web程序 时间:
2021-04-20 14:21:08
阅读次数:
0
select系统调用 #include <sys/select.h> int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); nfds:是指集合中所有文件 ...
分类:
系统相关 时间:
2021-04-20 14:09:45
阅读次数:
0
前端 html <!-- 搜索 --> <div style="margin-top: 15px"> <el-select style="width: 150px" v-model="select" placeholder="请选择"> <el-option label="歌手列表" value=" ...
分类:
编程语言 时间:
2021-04-20 14:07:21
阅读次数:
0
Description Link. 起床困难综合症 上树。 Solution 线段树维护,树剖上树。 具体题解有空再写,我要去睡觉了。 #include<bits/stdc++.h> typedef unsigned long long ULL; struct node { ULL one,zero ...
分类:
其他好文 时间:
2021-04-19 15:09:51
阅读次数:
0
[Luogu P6822PA2012]Tax] (http://www.luogu.com.cn/problem/P6822") All right. Let's go! 题目描述 给出一个 n 个点 m 条边的无向图,经过一个点的代价是进入和离开这个点的两条边的边权的较大值,求从起点 1 到点 n ...
分类:
其他好文 时间:
2021-04-19 15:06:50
阅读次数:
0
树 建树 struct tr{ char x; tr*lc,*rc; }; #define nu NULL // 建树 tr* create() { tr*t ; char x;cin>>x; if(x=='#') { t=nu; }else{ t=new tr; t->x=x; t->lc=nu; ...
分类:
其他好文 时间:
2021-04-19 15:00:42
阅读次数:
0
1. 链接上虚拟机 这里是我成功结局的图 2. Options ->Global Option-> 3.复制那个路径 4 .打开我的电脑黏贴进去直接回车 5. 进入这个文件夹 6. 用notepad++ 打开 和你链接名一样的文件 7. ctrl+f 查找UTF找到这一句 D:"Filenames ...
分类:
其他好文 时间:
2021-04-19 14:41:31
阅读次数:
0
什么是柔性别数组 结构中的最后一个元素允许是未知大小的数组,这就叫做柔性数组成员 例如 typedef struct st_type { int i; int a[0]//柔性数组成员可以调整数组大小 }type_a; 使用方法 struct S { int n; int arr[]; }; int ...
分类:
编程语言 时间:
2021-04-16 11:50:27
阅读次数:
0
//本模板是离散后对权值建树 #include<bits/stdc++.h> #define mid (l+r>>1) using namespace std; const int N=2e5+10; struct TR { int sum,lo,ro; }tr[N<<5]; int tr_cnt; ...
分类:
其他好文 时间:
2021-04-15 12:28:09
阅读次数:
0
前缀树又称字典树,每颗节点结构与一般树有一点不同。 一般树节点 struct TreeNode { valueType val; vector<TreeNode*> next;//个数不固定,个数代表一个节点有多少个子节点 } 本题前缀树节点 struct TrieNode { bool isEnd ...
分类:
其他好文 时间:
2021-04-15 12:01:28
阅读次数:
0