自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 java: 常量字符串过长 报错的解决方法及原因

java: 常量字符串过长 报错的解决方法及原因

2022-10-02 11:55:03 32686 1

原创 a-select选择好后,点击编辑按钮后,不回显value而只回显绑定的id的解决办法

a-select选择好后,点击编辑按钮后,不回显value而只回显绑定的id的解决办法

2022-09-21 22:52:24 2925 2

原创 centos7安装yum的暴力直接办法

centos7安装yum的暴力直接办法

2022-09-14 19:32:09 1021

原创 初识java中的函数式编程(以Stream类的reduce、collect方法为例)

本文以java.util.stream类的.reduce(Tidentity,BinaryOperatoraccumulator)方法和collect(Collectorcollector)方法为例子讲述函数式编程是个啥,有啥用。

2022-07-17 05:14:36 575

原创 关于rdp wrapper的not supported、not listening问题的可能解决办法

问题:1.not supported、not listening2.not listening,fully supported解决:1.下载https://raw.githubusercontents.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini后,替换C:\Program Files\RDP Wrapper内的ini文件2.若出现not listening,fully supported,则下载https://github.com/stascor

2022-05-18 00:05:40 2932 2

原创 简单聊一下2022计算机考研的经历,武理计科

楼主今年考的武理的计科,复试刚出来,内心还是很激动的,在拟录取名单的边边了,还是很开心的,有学上了~这个帖就吐槽一下复试吧,关于初试的准备之后再详细开贴分享一下经验初试的话排名是下游,靠不错的复试成绩最终稳定在了拟录取人数边缘,可以说武理的复试真的很公平了,不歧视我这双非学院的本科,也没歧视我大学没项目、竞赛之类的,就是看看考生的基础咋样,科班平时好好学了的甚至我觉得都不需要准备复试,今年是线上复试,只有面试,不需要机试、笔试,虽说是线上(按照往常的经验高分不会被刷),但是也有很多几个高分选手被逆袭了。

2022-03-31 02:17:39 1415 1

原创 局域网内PC配置windows远程桌面供其他设备访问的2种方式及原理【绿色健康地让你的ipad远程控制你的电脑!~】

由于格式问题,原文章见我的知乎:链接

2021-07-04 02:39:12 161

原创 计组《高速缓存》四组联16行+LRU替换实例

何为高速缓存?高速缓存,简称cache。我们知道,常用的32位计算机上的内存条可以存储000…000-111…1111也就是2^32大小的键值对,key为32位的地址,value为32位的值。当cpu通过MMU想要访问内存某个地址的时候,主存就会返回相应地址的值。内存中的数据通常是以块为单位存储的,一个块是什么呢?一个块的大小若为4bytes,那么就刚好占了某一个32位地址的32位值。如果cpu直接从内存中读取值,这个速度会很慢很慢,于是就有聪明的B想出了高速缓存(Cache)的办法:在cpu到内存

2020-11-08 21:48:14 1331

原创 《现代操作系统》第二章进程概念整理

进程进程模型(是什么?)进程是什么呢?操作系统(例如linux)通过维护一张名叫task_struct的表来调度、维护进程的执行。进程是cpu分配资源的单位,也就是说,计算机上的软件在被运行时都是以进程的形式运行于内存中的,当某个进程被执行的时候,一个cpu就只允许这个进程进入它的身体,也就是说,cpu同时只能执行一个进程,一般来说,我们使用的交互式系统(例如windows)根据相应的调度算法来调整对各个进程的执行顺序。对于一个进程来说,它由程序计数器(pc)、寄存器(诸如%eax、%cr3等)、进

2020-10-30 00:50:01 146

原创 csapp第7章《链接》基本概念

何为链接?我们写的c语言程序是一个.c,但是这个.c到.exe过程经历了什么呢?首先是预处理从.c -->> .i ,然后是变成汇编语言 .i -->> .s ,接着是将汇编语言变成机器可以识别的二进制文件 .s -->>.o ,接下来的一步就是这章的内容了,也就是将其他的.o文件链接(合并)到我们写的程序的.o文件中,最后生成.exe。合并各种代码段、数据段的过程就叫做链接,就比如说,你通过#include<stdio.h>引用了printf()函数,

2020-10-27 15:54:32 279

原创 csapp第9章《虚拟内存》基本概念

1.虚拟内存是什么,如何实现的?介绍计算机的主存(内存条)被组织成一个由M个连续的字节大小的单元组成的数组,每一个byte都有一个唯一的物理地址。早期的计算机寻址使用物理寻址的方式,也就是cpu需要某一个地址的值,那么久直接从内存中去找这个地址并且取值。而虚拟内存:虚拟虚拟,也就是实际不存在与内存中的地址,cpu生成一个虚拟地址,这个地址在物理内存中是不存在的!那么要如何寻求实际需要的地址呢?cpu芯片中有一个叫MMU(memory management Unit)内存管理单元的硬件,这

2020-10-20 21:07:53 372

原创 2020/7/25 pat甲级45分总结

额,第一次考甲级,慌慌的,第一题第三题都比较简单,就都写得很快,然后第二题就死磕了。。题目中的difference一直当成“差异”来理解,然后一直想不出测试用例的答案是咋的出来的。。害,第四题是看了一眼测试用例,感觉不太容易的样子,然后就继续肝第二题,然后就是3个小时45分的结果了= =。只能说,第二题是有些运气不太好的成分的。。主要是看不懂题意,,看懂题意得话题目不难的。然后第四题的话,确实,让我当场花2个小时,不一定模拟的出来,平时主要就是刷刷树图题,大的模拟题联系很少,这个确实是硬伤,之前也就只刷刷

2020-09-01 23:52:22 316

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

1119 Pre- 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 sequ

2020-07-23 21:17:43 183

原创 1074 Reversing Linked List (25分)

1074 Reversing Linked List (25分)Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, if K=3, then you must output 3→2→1→6→5→4; if K=4, you must output 4→3→2→

2020-07-20 23:00:33 100 1

原创 1145 Hashing - Average Search Time (25分)

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 integer keys from the table and output the average search time (the n

2020-07-20 22:06:26 86

原创 1140 Look-and-say Sequence (20分) 解决测试点4超时 详解

Input Specification:Each input file contains one test case, which gives D (in [0, 9]) and a positive integer N (≤ 40), separated by a space.Output Specification:Print in a line the Nth number in a look-and-say sequence of D.Sample Input:1 8Sample Out

2020-07-18 22:28:23 221 1

原创 1060 Are They Equal (25分) (含多个给力的测试点~)

1060 Are 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 as 0.123×10​5​​ with simple chopping. Now given the number of significant digits on a machine a

2020-06-07 21:03:45 651 3

原创 1088 Rational Arithmetic (20分)

1088 Rational Arithmetic (20分)For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Specification:Each input file contains one test case, which gives in one lin

2020-06-06 21:29:27 140

原创 1095 Cars on Campus (30分) 题解

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 all the information available, you are supposed to tell, at any sp

2020-06-05 20:11:07 629 1

原创 1022 Digital Library (30分)

1022 Digital Library (30分)A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit number as its ID. Given any query fro

2020-06-04 23:09:35 119

原创 1112 Stucked Keyboard (20分)附测试点1用例

1112 Stucked Keyboard (20分)1112 Stucked Keyboard (20分)On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for k times.Now given a resulti

2020-06-04 18:54:29 358 1

原创 1118 Birds in Forest (25分) 测试点4错误的原因

1118 Birds in Forest (25分)Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the scientists to count the maximum number of trees in the fo

2020-05-23 19:59:40 346

原创 1114 Family Property (25分)题解

1114 Family Property (25分)This time, you are supposed to help us collect the data for family-owned property. Given each person’s family members, and the estate(房产)info under his/her own name, we need to know the size of each family, and the average area a

2020-05-23 18:02:50 182

原创 1150 Travelling Salesman Problem (25分)

1150 Travelling Salesman Problem (25分)The “travelling salesman problem” asks the following question: “Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city and returns to the origin

2020-05-16 00:02:51 226 1

原创 1072 Gas Station (30分) 测试点4错误的康过来~

1072 Gas Station (30分)A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as possible. However it must guarantee that all the houses are in its service range.Now

2020-05-11 22:35:50 651

原创 Idea解决各种jdk版本不兼容问题 (Utimate Edision)

检查以下几个地方:

2020-03-23 17:57:09 2641

原创 SpringMVC中解决关于@Configuration+@Bean注解无效的问题的可能性之一

首先,如果你是:1.初学者,通过学习Spring实战来学习Spring框架的2.通过继承AbstractAnnotationConfigDispatcherServletInitializer类来创建DispatcherServlet的3.你遇到了这样的问题:自己创建的或者是外部的由@Bean+@Configuration来声名的bean无法被装配到spring容器中,自己无法调用这些bea...

2020-03-20 01:38:06 6896

原创 1139 First Contact (30分)

Sample Input:10 18-2001 1001-2002 -20011004 1001-2004 -2001-2003 10051005 -20011001 -20031002 10011002 -2004-2004 10011003 -2002-2003 10031004 -2002-2001 -20031001 10031003 -20011002...

2020-02-25 16:13:00 111

原创 1075 PAT Judge (25分)列出了3个个人以为难点

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 Specification:...

2020-02-24 14:20:38 275

原创 1059 Prime Factors (25分)

Sample Input:97532468Sample Output:97532468=2^2*11*17*101*1291知识点:1.一定范围素数表的建立2.模拟分解数字的因子代码:#include<iostream>#include<vector>using namespace std;int main(){ vector<boo...

2020-02-22 20:53:15 105

原创 1153 Decode Registration Card of PAT (25分) + 分析map的应用

1153 Decode Registration Card of PAT (25分)A registration card number of PAT consists of 4 parts:the 1st letter represents the test level, namely, T for the top level, A for advance and B for basic;...

2020-02-19 20:01:56 123

原创 1141 PAT Ranking of Institutions (25分) 测试点5错误的请来这里

1141 PAT Ranking of Institutions (25分)After each PAT, the PAT Center will announce the ranking of institutions based on their students’ performances. Now you are asked to generate the ranklist.Input...

2020-02-18 21:21:09 595 1

原创 1137 Final Grading (25分) 测试点4答案错误的看过来~

1137 Final Grading (25分)For a student taking the online course “Data Structures” on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no ...

2020-02-18 20:19:51 872 2

原创 1112 Stucked Keyboard (20分)

1112 Stucked Keyboard (20分)On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for ...

2020-02-17 23:33:14 153

原创 1100 Mars Numbers (20分) 格式错误的请来这里!

1100 Mars Numbers (20分)People on Mars count their numbers with base 13:Zero on Earth is called “tret” on Mars.The numbers 1 to 12 on Earth is called “jan, feb, mar, apr, may, jun, jly, aug, sep, oc...

2020-02-17 20:09:46 295

原创 1071 Speech Patterns (25分)

1071 Speech Patterns (25分)People often have a preference among synonyms of the same word. For example, some may prefer “the police”, while others may prefer “the cops”. Analyzing such patterns can he...

2020-02-16 23:33:29 113

原创 1064 Complete Binary Search Tree (30分)写过的代码最短的30分题了。。。我吐了

1064 Complete 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 l...

2020-01-30 18:45:16 119

原创 PAT 1016 Phone Bills (25 分)

PAT 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 day ...

2020-01-17 19:03:15 128

空空如也

空空如也

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

TA关注的人

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