自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

YIU

每天进步一点点

  • 博客(440)
  • 资源 (1)
  • 收藏
  • 关注

转载 ace 鸡汤

原文链接              每个安慰你挂科算什么的人,  最后都默默拿了奖学金;  每个夸你肥嘟嘟的脸好可爱的人,  最后都瘦成了万人迷;  每个在你面前说自己前途渺茫的人,  最后都身家过亿;  只有你,  在满床的薯片袋和电脑荧光照射下,  淬炼成一朵SB 。  你要是天天一大早六点起床,吃顿好饭,奔去教室背两篇新三,八点坐直在教室的前排,使劲不分心不玩手机地听完...

2019-02-20 17:42:40 226 2

原创 收到我的小心心了吗?

#include <iostream>#include <cstring>#include <cstdio>#include <string>using namespace std;char map[200][200];int main() { //1->8行 9 列 int n; char c; while(cin&g...

2018-07-25 15:07:37 867 2

原创 Mac M1搭建hadoop+spark集群教程

最近一直在搞Mac虚拟机,尝试了parallel、vmware、utm,感觉效果都不是很好,踩了了很多很多坑,parallel破解直接劝退我,并且也不是很稳定;wmware for m1刚开始装了一次挺不错的,但是因为我集群磁盘太小扩展磁盘大小的时候,系统就这样崩了,不管最后怎么装都没有用;最后我转战utm,刚开始因为不熟悉utm也踩了很多坑,弃了一段时间,vmware实在装不了了,我又来找utm了【utm yyds 轻便又好用又不花钱(后续发现的问题是容易闪退),推荐mac m1用户使用】。ps:建议u

2022-03-25 19:44:10 8412 33

原创 BiLSTM

今天BiLSTM的学习记录照着大牛的博客学习的,详细的内容可以看该大牛的介绍。'''BiLSTM 模型学习与实现luer 2021-04-13'''# 导库import torchimport numpy as npimport torch.nn as nnimport torch.optim as optimimport torch.utils.data as Data# dtype = torch.FloatTensor tensor默认类型不就是float?# 准

2021-04-13 22:36:42 297

原创 Pytorch-Torch

Torchpytorch深度学习框架最重要的包torch相关介绍torch 官方文档说明如下:The torch package contains data structures for multi-dimensional tensors and defines mathematical operations over these tensors. Additionally, it provides many utilities for efficient serializing of Tens

2021-04-11 13:57:10 660

原创 在远程服务器下跑模型

1.登陆服务器本人使用的是xshell7,个人版自行下载下载完之后输入用户名和密码即可登录2.配置环境根据自己的项目需求配置环境,默认环境已经配好,这一点不做详细介绍3.跑模型很惨的是当服务器断开的时候,运行的代码也会终止,所以这里我采用的方法是使用screen,使用的时候在要执行的指令前添加screen即可。安装screenapt install screen使用screenscreen python xxx.py 这时候如果终端断开,只需要再次连接服务器然后输入指令:scre

2021-03-25 15:55:50 1480 1

原创 解决网页出现 DNS_PROBE_FINISHED_NO_INTERNET 的问题

cmd 管理员运行 输入 netsh int ip reset (回车) netsh winsock reset (回车) ipconfig /flushdns (回车) 重启电脑

2021-03-02 13:10:17 20683 2

原创 py2neo的基本操作

# -*- coding: UTF-8 -*-from py2neo import Graph, Node, Relationship, walk, NodeMatcher, RelationshipMatcherimport pandas as pdimport json# 连接数据库 输入地址、用户名、密码test_graph = Graph( "http://localhost:7474", username="neo4j", password="52151").

2021-01-19 15:18:49 1546

原创 Neo4j图数据库

不断记录,不断学习。加油。

2021-01-19 00:16:52 603

原创 PAT 7-44 直捣黄龙(dijkstra多条件)

7-44直捣黄龙(30分)本题是一部战争大片 —— 你需要从己方大本营出发,一路攻城略地杀到敌方大本营。首先时间就是生命,所以你必须选择合适的路径,以最快的速度占领敌方大本营。当这样的路径不唯一时,要求选择可以沿途解放最多城镇的路径。若这样的路径也不唯一,则选择可以有效杀伤最多敌军的路径。输入格式:输入第一行给出2个正整数N(2≤N≤200,城镇总数)和K(城镇间道路条数),以及己方大本营和敌方大本营的代号。随后N-1行,每行给出除了己方大本营外的一个城镇的代号和驻守的敌军数量,其间...

2020-11-27 18:05:43 487

原创 PAT 1099 Build A Binary Search Tree (30分)

1099Build A Binary Search Tree(30分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key. The right subtree of a node c..

2020-09-21 16:01:09 99

原创 PAT 1123 Is It a Complete AVL Tree (30分)(完全二叉平衡树)

1123Is It a Complete AVL Tree(30分)An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore t..

2020-09-20 21:41:31 91

原创 PAT 1127 ZigZagging on a Tree (30分)

1127ZigZagging on a Tree(30分)Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences. And it is a simple standard routine to print th..

2020-09-20 20:42:31 76

原创 PAT 1135 Is It A Red-Black Tree (30分) (红黑树)

1135Is It A Red-Black Tree(30分)There is a kind of balanced binary search tree namedred-black treein the data structure. It has the following 5 properties:(1) Every node is either red or black. (2) The root is black. (3) Every leaf (NULL) is black...

2020-09-20 17:36:12 101

原创 PAT 1151 LCA in a Binary Tree (建树+lca)

1151LCA in a Binary Tree(30分)The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants.Given any two nodes in a binary tree, you are supposed to find their LCA.Input Specification:Eac..

2020-09-20 16:04:20 106

原创 PAT 1139 First Contact (30分) (最后一个测试点超时)

1139First Contact(30分)Unlike in nowadays, the way that boys and girls expressing their feelings of love was quite subtle in the early years. When a boy A had a crush on a girl B, he would usually not contact her directly in the first place. Instead, he..

2020-09-19 20:40:36 553

原创 PAT 1155 Heap Paths (30分)

1155Heap Paths(30分)In computer science, aheapis a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of P is either greater than or equal to (in a max heap) or less than or equ...

2020-09-19 16:28:31 72

原创 PAT 1147 Heaps (30分)

1147Heaps(30分)In computer science, aheapis a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of P is either greater than or equal to (in a max heap) or less than or equal to...

2020-09-19 15:24:23 100

原创 使用git上传项目

git initgit add .git commit -m "first commit" 表示你对这次提交的注释,双引号里面的内容可以根据个人的需要改。git remote add origin https://自己的仓库url地址git push -u origin master

2020-08-26 18:31:40 153

原创 PAT 1143 Lowest Common Ancestor (30分)

1143Lowest Common Ancestor(30分)The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants.A binary search tree (BST) is recursively defined as a binary tree which has the following propert..

2020-07-24 16:11:38 99

原创 计算机组成原理——对有符号数溢出的修正

想着学期结束公开代码,想着想着就忘了哈哈第六组:yll,gss,wmk,ljh,zy/*1.选择加法还是减法2.输入真值(本程序不处理小数,机器字长默认为8位,含1位符号位)3.将真值转换成二进制 -->原码 4.求补码5.处理相加/相减6.判断数值最高位和符号位有没有进位7.判断是否溢出8.修正(符号位有进位 最高位无进位->-2^n, 符号位无进位 最高位有进位 -> +2^n)9.对修正的结果求原码->换成真值最后输出结果*/#include .

2020-07-24 15:16:09 667

原创 PAT 1131 Subway Map (30分)

1131Subway Map(30分)In the big cities, the subway systems always look so complex to the visitors. To give you some sense, the following figure shows the map of Beijing subway. Now you are supposed to help people with your computer skills! Given the star..

2020-07-24 11:45:48 156

原创 PAT 1119 Pre- and Post-order Traversals (30分)

1119Pre- and Post-order Traversals(30分)Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences, or preorder and inorder traversal seq..

2020-07-23 17:23:42 88

原创 PAT 1111 Online Map (30分) (dijkstra)

1111Online Map(30分)Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is the shortest, and the other is the fastest. It is guaranteed that a path exists for ..

2020-07-23 16:32:38 120

原创 PAT 1115 Counting Nodes in a BST (30分) (建树)

1115Counting Nodes in a BST(30分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than or equal to the node's key. The right subtree of..

2020-07-22 23:12:09 90

原创 PAT 1107 Social Clusters (30分)(并查集)

1107Social Clusters(30分)When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. Asocial clusteris a set of people who have some of their hobbies in common. You are...

2020-07-22 22:29:26 91

原创 PAT 1103 Integer Factorization (30分)

1103Integer Factorization(30分)TheK−Pfactorization of a positive integerNis to writeNas the sum of theP-th power ofKpositive integers. You are supposed to write a program to find theK−Pfactorization ofNfor any positive integersN,KandP....

2020-07-22 21:55:54 80

原创 PAT 1087 All Roads Lead to Rome (30分)

Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.Input Specification:Each input file contains one test case. For each case, the fi

2020-07-22 21:03:13 124

原创 PAT 1060 Are They Equal (25分)

1060Are They Equal(25分)If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as0.123×10​5​​with simple chopping. Now given the number of significant digits on a machine and...

2020-07-17 16:00:37 105

原创 PAT 1033 To Fill or Not to Fill (25分)

1033To Fill or Not to Fill(25分)With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Different gas station may give di..

2020-07-17 15:35:09 85

原创 PAT 1037 Magic Coupon (25分) (贪心)

1037Magic Coupon(25分)The magic shop in Mars is offering some magic coupons. Each coupon has an integerNprinted on it, meaning that when you use this coupon with a product, you may getNtimes the value of that product back! What is more, the shop als...

2020-07-16 23:51:32 94

原创 置于死地而后生

置于死地而后生……没有退路……只能坚持……什么时候能看到太阳……

2020-07-15 22:55:18 170

原创 PAT 1029 Median (25分)

1029Median(25分)Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 12, and the median of S2 = { 9, 10, 15, 16, 17 } is 15. The median of two sequences is d..

2020-07-14 22:57:32 195

原创 PAT 1032 Sharing (25分)

1032Sharing(25分)To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example,loadingandbeingare stored as sho...

2020-07-13 23:24:26 80

原创 PAT 1043 Is It a Binary Search Tree (25分)

1043Is It a Binary Search Tree(25分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key. The right subtree of a node c..

2020-07-11 17:05:58 89

原创 PAT 1025 PAT Ranking (25分)

1025PAT Ranking(25分)Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several places, and the ranklists will be merged immediately after ..

2020-07-11 16:13:50 93

原创 PAT 1024 Palindromic Number (25分)(大整数相加)

1024Palindromic Number(25分)A number that will be the same when it is written forwards or backwards is known as aPalindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.Non-palindromic number...

2020-07-10 22:59:00 113

原创 PAT 1021 Deepest Root (25分)

1021Deepest Root(25分)A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root is calledthe deepest root.In...

2020-07-10 22:22:41 106

原创 PAT 1039 Course List for Student (25分)(哈希)

1039Course List for Student(25分)Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes for a query.Input ..

2020-07-10 00:01:27 115

原创 PAT 1066 Root of AVL Tree (25分) (AVL模板)

1066Root of AVL Tree(25分)An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore this prope..

2020-07-09 16:14:43 131

1-在线考试系统(1).docx

在线考试系统项目介绍以及三个其质量属性分析(安全性,性能,易用性),在线考试系统项目介绍以及三个其质量属性分析(安全性,性能,易用性),在线考试系统项目介绍以及三个其质量属性分析(安全性,性能,易用性),在线考试系统项目介绍以及三个其质量属性分析(安全性,性能,易用性),拿来当作业,完全可以。

2020-03-31

空空如也

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

TA关注的人

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