自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 记录一次因为更换电脑导致git push项目代码失败的情况

写在前面我这个情形很少见,一般碰不到,当属疑难杂症,只能作为各位寻医问药的一个参考吧,最终解决的方案也不算优美发病情况两个大病:没有推送代码的权限报错中出现别人的邮箱从公司Github上拉下的代码,自己在本地建立了分支,修改代码后准备推送本机分支到远程仓库上分别经历 git add 和 git commit命令然后git push开始报错fatal: The current branch ymn/master has no upstream branch.这大概是我没有建立远程分支的

2021-07-14 19:31:30 1963

原创 Windows上生成码云公钥

Windows上生成码云公钥1 申请码云账号2 找到公钥的填写位置3 生成密钥1 申请码云账号https://gitee.com/signup2 找到公钥的填写位置点击头像下拉框中的设置,在左侧找到SSH公钥点击就可以添加公钥啦。3 生成密钥官方也给出了教程,如下图所示:其中红色的部分要填自己的邮箱,我是用手机号注册的账号,后面又绑定了一个邮箱,所以这里我填的是绑定的邮箱(有点不太确定对不对)。因为是windows系统,不支持cat命令,所以要用type命令替换。.ssh文件就在你打

2020-05-21 22:05:28 658

原创 1001 A+B Format (20 分)

AC练习1001 A+B Format (20 分)题目链接:1001 A+B Format前几天准备开始敲代码练习,找了最后一套题做,做了一个简单的一道难的,1153还是做不出来……超时+不知道错哪。虽然通过这两道题回忆起了C++的语法,但是还是决定从简单的开始,不然敲得我脑壳疼肩膀疼。那么就从1001开始吧,哈哈哈,一看就是以前得出题风格,很简单,但是还有几个我很容易出错的点。给别人提...

2019-10-16 19:43:22 215

原创 PAT日志 1147 Heaps

顽强的小白1147 Heaps (30 分)In computer science, a heap is 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 gre...

2019-03-14 23:54:02 215

原创 PAT日志 1146

顽强的小白1146 Topological Order (25 分)This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed graph? Now you are...

2019-03-14 21:29:55 208

原创 PAT日志 1145

顽强的小白1145 Hashing - Average Search Time (25 分)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integ...

2019-03-14 21:06:18 234

原创 PAT日志 1144

顽强的小白1144 The Missing Number (20 分)Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case...

2019-03-14 17:19:11 129

原创 PAT日志 1154

顽强的小白1154 Vertex Coloring (25 分)A proper vertex coloring is a labeling of the graph’s vertices with colors such that no two vertices sharing the same edge have the same color. A coloring using at m...

2019-03-05 16:41:52 125

原创 PAT日志 1152

顽强的小白1152 Google Recruitment (20 分)In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a U...

2019-03-05 14:03:16 137

原创 PAT日志 1155

顽强的小白1155 Heap Paths (30 分)In computer science, a heap is 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 eithe...

2019-03-04 18:12:20 159

原创 PAT日志 1098

顽强的小白1098 Insertion or Heap Sort (25 分)According to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort ...

2019-03-04 13:46:44 125

原创 PAT日志 1136

顽强的小白1136 A Delayed Palindrome (20 分)Consider a positive integer N written in standard notation with k+1 digits a​i​​ as a​k​​⋯a​1​​a​0​​ with 0≤a​i​​<10 for all i and a​k​​>0. Then N is palin...

2019-03-03 16:57:53 143

原创 PAT日志 1111

顽强的小白1111 Online 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 ...

2019-03-03 13:54:44 153

原创 PAT日志 1108

顽强的小白1108 Finding Average (20 分)The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not...

2019-03-02 13:41:42 194

原创 PAT日志 1013

顽强的小白1013 Battle Over Cities (25 分)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are close...

2019-03-01 18:16:08 83

原创 PAT日志 1053

顽强的小白1053 Path of Equal Weight (30 分)Given a non-empty tree with root R, and with weight W​i​​ assigned to each tree node T​i​​. The weight of a path from R to L is defined to be the sum of the wei...

2019-03-01 10:01:09 151

原创 PAT日志 1079

顽强的小白1079 Total Sales of Supply Chain (25 分)A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.St...

2019-02-28 14:30:41 151

原创 PAT日志 1102

顽强的小白1102 Invert a Binary Tree (25 分)The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard...

2019-02-28 13:47:29 90

原创 PAT日志 1086

顽强的小白1086 Tree Traversals Again (25 分)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys num...

2019-02-28 13:02:02 129

原创 PAT日志 1020

顽强的小白1020 Tree Traversals (25 分)Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level o...

2019-02-27 16:50:07 155

原创 PAT日志 1091

顽强的小白1091 Acute Stroke (30 分)One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in e...

2019-02-27 16:18:10 167

原创 PAT日志 1103

顽强的小白1103 Integer Factorization (30 分)The K−P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program to find the...

2019-02-27 10:58:06 181

原创 PAT日志 1095

顽强的小白1095 Cars on Campus (30 分)Zhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the gate. Now with a...

2019-02-26 15:09:57 175

原创 PAT日志 1080

顽强的小白1080 Graduate Admission (30 分)It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could writ...

2019-02-26 12:35:25 207

原创 PAT日志 1083

顽强的小白1083 List Grades (25 分)Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those studen...

2019-02-24 17:37:19 79

原创 PAT日志 1075

顽强的小白1075 PAT Judge (25 分)The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist for PAT.Input Specif...

2019-02-24 17:18:46 131

原创 PAT日志 1055

顽强的小白1055 The World’s Richest (25 分)Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world’s wealthiest people. Now you are supposed to simulate this ...

2019-02-23 18:19:11 151

原创 PAT日志 1028

顽强的小白1028 List Sorting (25 分)Excel can sort records according to any column. Now you are supposed to imitate this function.Input Specification:Each input file contains one test case. For each case...

2019-02-20 15:47:21 104

原创 PAT日志 1025

顽强的小白1025 PAT 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 sever...

2019-02-20 15:28:04 86

原创 PAT日志 1016

顽强的小白1016 Phone Bills (25 分)A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of da...

2019-02-20 11:25:44 142

原创 PAT日志 1012

顽强的小白1012 The Best Rank (25 分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus...

2019-02-18 14:05:29 149

原创 PAT日志 1062

顽强的小白1062 Talent and Virtue (25 分)About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people’s talent and virtue. According to his theory, a man being...

2019-02-18 10:33:06 147

原创 PAT日志 1077

顽强的小白1077 Kuchiguse (20 分)The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. ...

2019-02-17 16:23:55 134

原创 PAT日志 1035

顽强的小白1035 Password (20 分)To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to dis...

2019-02-17 15:48:01 159

原创 PAT日志 1005

顽强的小白1005 Spell It Right (20 分)Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input f...

2019-02-17 14:12:02 195

原创 PAT日志 1019

顽强的小白1019 General Palindromic Number (20 分)A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. Al...

2019-02-15 15:50:26 184

原创 PAT日志 1031

顽强的小白1031 Hello World for U (20 分)Given any string of N (≥5) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as:h de ll ...

2019-02-15 15:24:08 116

原创 PAT日志 1036

顽强的小白1036 Boys vs Girls (25 分)is time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.Specification:ach i...

2019-02-15 14:45:06 125

原创 PAT日志 1006

顽强的小白1006 Sign In and Sign Out (25 分)At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given t...

2019-02-15 14:13:21 188

原创 PAT日志 1011

顽强的小白1011 World Cup Betting (20 分)With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the...

2019-02-15 13:42:06 255

空空如也

空空如也

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

TA关注的人

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