自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

原创 四六级忘记准考证号

点击找回准考证号http://cet-bm.neea.edu.cn/Home/QueryTestTicket

2020-02-19 21:29:00 379

原创 兰州大学成绩提前查询方法

1. 进入网站http://yjszfw.lzu.edu.cn/login用户名:考生编号(准考证号)密码:身份证号2. 打开开发者调试模型,有些浏览器是F12,有些浏览器可以右击审查元素。不同的浏览器操作不同。4. 选择“资源”或者“网络”,不同的浏览器名称不同。3. 点击页面左边导航栏成绩查询5. 选择全部,查找服务器返回的一个名为list的资源6. 找到...

2020-02-14 16:55:22 6848 1

原创 历届试题 错误票据

#include <iostream>#include <string>#include <sstream>#include <cstring>using namespace std;int a[100001];int main(){ memset(a, 0, 100001); int n; ...

2019-03-22 21:06:08 311

原创 历届试题 带分数

#include <iostream>#include <cstring>using namespace std;int visited[10];//访问标志数组int arr[10];//将全排列数放在数组中 每一位一个int sum = 0;//记录个数int num = 0;//输入的数#define LEN 9//剪枝函数void DEL() ...

2019-03-22 20:22:47 278

原创 C++创建动态大小的数组

#include <iostream>using namespace std;int main(int argc, const char * argv[]) { int size; cout << "动态创建数组size:"; cin >>size; int array[size]; cout &l...

2019-03-21 21:54:52 4465 1

原创 蓝桥杯 合根植物

简单的两个函数的并查集即可,不用做路径压缩。#include <iostream>using namespace std;int root[1000001];//初始化 刚开始每株植物的根都是自己的根void init(int n) { for (int i=1; i<=n; i++) { root[i] = i; }}in...

2019-03-19 14:26:27 453

原创 蓝桥杯 核桃的数量

a,b的最小公倍数 = a ×b ÷ (a,b的最大公约数)n个数的最小公倍数 = n个数乘积 ÷ (n-1组的最大公约数乘积)#include &lt;iostream&gt;using namespace std;int greatest_common_divisor(int a, int b) { if (a&lt;b) { int temp = a...

2019-03-17 20:23:45 266

原创 蓝桥杯 小计算器

#include &lt;iostream&gt;#include &lt;math.h&gt;#include &lt;list&gt;#include &lt;string&gt;#include &lt;sstream&gt;using namespace std;int sys = 10;long long num = 0;string op = "";void cle...

2019-03-17 19:31:23 682

原创 KMP算法

KMP算法用于在主串中查找子串。核心:当匹配失败后需要回溯时,要在此次失败的匹配中寻找一些信息,这些信息在哪里?如图:a和c匹配失败时,此次失败的匹配已经完成了前面ababab串的成功匹配。有什么用?对于ababab串,求其前缀集合{a, ab, aba, abab, ababa}和后缀集合{babab, abab, bab, ab, b}和交集{abab}中的最大长度的元素。即{...

2019-03-17 09:38:26 170

原创 Linux下深度学习环境CUDA和cuDNN的配置

1、检查当前设备可安装驱动ubuntu-drivers devices== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==modalias : pci:v000010DEd0000139Bsv0000152Dsd00001129bc03sc02i00vendor : NVIDIA Corporationmodel ...

2019-03-01 14:29:52 1905

原创 Speed Kills Love数学建模题目

In the age of online dating there are more romantic options than there are fish in the, well, you know. On the appropriately named site Plenty of Fish, for instance, you can pore over profiles of hund...

2018-11-29 23:12:15 577

原创 抽象工厂模式

Connection.javapackage example3;public interface Connection { public void connect();}OracleConnection.javapackage example3;public class OracleConnection implements Connection { @Overri...

2018-10-19 12:21:23 174

原创 工厂方法模式

Log.javapackage example2;public interface Log { public void writeLog();}FileLog.javapackage example2;public class FileLog implements Log { @Override public void writeLog() { System....

2018-10-19 12:14:27 176

原创 简单工厂模式

Shape.javapackage example1;public interface Shape { public void draw(); public void erase();}Circle.javapackage example1;public class Circle implements Shape { @Override public void...

2018-10-19 12:08:48 156

原创 子集和问题

#include &lt;stdio.h&gt;#include &lt;stdlib.h&gt;int *data;int *result;int sum;int n,c;int cut;//int main(int argc, char *argv[]) { scanf("%d %d",&amp;n,&amp;c); data = malloc(sizeof(int)*(n+...

2018-06-11 09:09:51 251

原创 磁带最优存储问题

贪心得每次都要最小值。#include &lt;stdio.h&gt;#include &lt;stdlib.h&gt;/* run this program using the console pauser or add your own getch, system("pause") or input loop */double *get_P(int *count, int len);...

2018-05-28 09:29:15 2041

原创 租用游艇问题

#include &lt;stdio.h&gt;#include &lt;stdlib.h&gt;/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) { int n; in...

2018-05-14 09:10:40 771

原创 数字三角问题

上代码:#include &lt;stdio.h&gt;int main(int argc, char *argv[]) { int n; scanf("%d",&amp;n); int data[100][100]; int i =0; int j= 0; for(i=1; i&lt;=n; i++){ for(j=1; j&lt;=i; j++) { scanf("%d...

2018-05-07 09:35:48 235

原创 CSS照片墙

&lt;!DOCTYPE html&gt;&lt;html lang="en"&gt;&lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;照片墙&lt;/title&gt; &lt;style type="text/css"&gt; bo

2018-03-16 18:04:32 298

原创 二叉排序树

#include #include typedef int ElementType;typedef struct TNode *BinTree;typedef BinTree Position;struct TNode{    ElementType Data;    BinTree Left;    BinTree Right;};BinTre

2017-12-19 10:42:41 247

原创 关键路径 C语言实现

#include #include #define MaxVertexNum 50#define false 0#define true 1typedef int bool;typedef int Vertex;typedef int WeightType;struct VertexNode;//顶点结构struct AdjNode;//邻接顶点结构type

2017-12-05 11:46:26 2141

原创 深度优先遍历和广度优先遍历

#include #include #define MaxVertexNum 50typedef int bool;enum {false, true};typedef int Vertex;typedef int WeightType;struct VertexNode;//顶点结构struct AdjNode;//邻接顶点

2017-11-21 00:42:47 526

原创 栈实现二叉树非递归先序遍历

#include "stdio.h"#include "stdlib.h"typedef struct TreeNode *Tree;typedef char ElementType;typedef struct stack *Stack;typedef Tree ElementTypeOfStack;struct TreeNode{ElementType Data

2017-11-07 11:08:55 1103

原创 中序线索化二叉树

#include #include typedef char TElemType;typedef enum {Link,Thread} pointertag;typedef struct TBTNode TBTNode;//结构体类型typedef TBTNode *BiThrTree;//结构体指针类型struct TBTNode{

2017-11-02 17:31:00 466

原创 Deduplication on a Linked List(两个测试点)

#include #include typedef int ElementType;typedef structLinkedNode *LinkedList;struct LinkedNode {    ElementType Data;    LinkedList link;    int Address,Next;};

2017-09-14 17:01:09 722 1

原创 Build A Binary Search Tree (30)

#include #include typedef int ElementType;typedef structTreeNode *Tree;typedef Tree QueueElementType;struct TreeNode{    ElementType Data;    Tree Left, Right;};

2017-09-12 16:36:13 275

原创 Root of AVL Tree

#include #include typedef int ElementType;typedef structAvlNode *AvlTree;typedef structAvlNode *Position;struct AvlNode{    ElementType Element;    AvlTree Left;

2017-09-05 19:45:37 237

原创 Emergency(只有10分),保存一下代码。求大神改正。

#include #include typedef structLinkedNode *List;typedef int DistType;typedef int Vertex;typedef structTableEntry *Table;enum bool{false,true};struct LinkedNode{

2017-08-27 19:32:35 291

原创 是否同一颗二叉树

#include #include typedef int ElementType;typedef structTreeNode *Tree;typedef Tree Position;struct TreeNode{    ElementType Data;    Tree Left,Right;    int flag

2017-08-10 15:56:32 271

原创 单链表逆转

List Reverse( List L ){    PtrToNode head = L;    if(head)    {        PtrToNode temp = head;        PtrToNode last = NULL;        while (temp) {            temp = temp->Next;       

2017-08-10 15:55:01 224

原创 多项式的加法与乘法

#include #include typedef structPolyNode *Polynomial;struct PolyNode{    int coef;    int expon;    Polynomial link;};Polynomial ReadPoly();void Attach(

2017-08-07 17:52:32 491

原创 求二叉树的高度

int Max(int a, int b){    return a>b?a:b;}int GetHeight( BinTree BT ){    if (BT == NULL) {        return 0;    }else    {        return 1 + Max(GetHeight(BT->L

2017-08-06 11:27:55 334

原创 CentOS 7 安装MySQL

# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm# rpm -ivh mysql-community-release-el7-5.noarch.rpm# yum install mysql-community-server # service 

2017-08-06 11:25:30 346

原创 二叉树操作集

BinTree Insert( BinTree BST,ElementType X ){    if (BST ==NULL) {        BinTree Node =malloc(sizeof(structTNode));        Node->Data = X;        Node->Left = Node->Right =

2017-08-06 10:50:08 473

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除