码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
最短路合集(分层图最短路、传递闭包、路径还原、k短路...)
ACM-ICPC模板 一、线段树优化的$Dijkstra$ 优先队列版本已经烂大街了,这里就不贴了,而且在下面的分层图里有写 1.普通线段树 时间和内存均是优先队列优化版本的 \(\frac{1}{2}\) int n, m; struct edge { int to, w, nxt; edge() ...
分类:其他好文   时间:2020-06-20 21:08:35    阅读次数:53
1006 Sign In and Sign Out (25分)
17分代码(测试点1,3错误) 1 #include<iostream> 2 #include <vector> 3 using namespace std; 4 struct node 5 { 6 string num,arrive,leave; 7 }; 8 int main() 9 { 10 ...
分类:其他好文   时间:2020-06-20 19:47:11    阅读次数:70
(C语言)学生成绩管理程序
#include <stdio.h>typedef struct Student{ char name[10]; float math;//高数 float english;//英语 float physics;//大学物理 float clanguage;//C语言 float maogai;// ...
分类:编程语言   时间:2020-06-20 19:25:54    阅读次数:60
C#中的闭包和意想不到的坑
虽然闭包主要是函数式编程的玩意儿,而C#的最主要特征是面向对象,但是利用委托或lambda表达式,C#也可以写出具有函数式编程风味的代码。同样的,使用委托或者lambda表达式,也可以在C#中使用闭包。 根据WIKI的定义,闭包又称语法闭包或函数闭包,是在函数式编程语言中实现语法绑定的一种技术。闭包 ...
分类:Windows程序   时间:2020-06-20 01:14:28    阅读次数:81
数据结构-静态循环队列(C语言实现)
1. 导入头文件 编写代码过程中,涉及动态内存分配等常用的函数,需要引入如下头文件 #include<stdio.h> #include<stdlib.h> 2. 结构体定义 len 表示初始化时的数组长度,队列的最大容量为len-1 typedef struct Queue { int * pDa ...
分类:编程语言   时间:2020-06-20 00:38:57    阅读次数:65
Python基础 读取二进制文件
问题 有二进制文件中保存了 20 亿个 2 Bytes 的数,需将其读出,每 20000 个数作图,拟合后输出结果。 解决 1 # -*- coding: utf-8 -*- 2 """ 3 @author: kurrrr 4 """ 5 6 import struct 7 8 def main() ...
分类:编程语言   时间:2020-06-19 22:37:46    阅读次数:65
双链表的插入删除
#include<stdio.h> #include<malloc.h> typedef char ElemType; typedef struct DNode { ElemType data; struct DNode *prior; struct DNode *next; }DNode,*DLi ...
分类:其他好文   时间:2020-06-19 21:12:34    阅读次数:57
Treap板子
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int SIZE = 1e5 + 5; class Treap { struct Node { int l, r; int val, dat; //节点 ...
分类:其他好文   时间:2020-06-19 13:40:37    阅读次数:40
102. 二叉树的层序遍历(队列+BFS+结构体)
题目描述 leetcode - 102:https://leetcode-cn.com/problems/binary-tree-level-order-traversal/ 解题关键 队列 BFS 结构体 碎碎念 这道题可以不用结构体,在while循环里面加一个for循环来遍历某一层的节点。但是很 ...
分类:其他好文   时间:2020-06-19 01:10:53    阅读次数:67
A 1141 PAT Ranking of Institutions (25分)
一、技术总结 二、参考代码 #include<iostream> #include<vector> #include<algorithm> #include<set> #include<map> using namespace std; struct node_i{ string name; dou ...
分类:其他好文   时间:2020-06-19 00:49:08    阅读次数:43
22969条   上一页 1 ... 89 90 91 92 93 ... 2297 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!