自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 AuthenticationFailedException: 526 Authentication failure[0]的解决方案

java程序通知阿里云邮箱服务器发送邮件失败。异常报错信息:AuthenticationFailedException: 526 Authentication failure[0]。

2023-07-13 19:16:46 3774

原创 Java中线程等待和线程阻塞的区别?

Java中线程等待和线程阻塞的区别?

2022-08-09 18:03:15 4212 3

原创 《计算机网络学习笔记》-01章 计算机网络体系结构、02章 物理层

第一章 计算机网络体系结构第一节 计算机网络的概念A、计算机网络的概念(1)概念:一些互联的、自治的计算机系统的集合。B、计算机网络的组成(1)从组成部分上看,计算机网络由硬件、软件、协议三大部分组成;(2)从工作方式上看,计算机网络由边缘方式和核心部分组成;(3)从功能上看,计算机网络由通信子网和资源子网组成。C、计算机网络的功能(1)数据通信(2)资源共享(3)分布式处理(4)提高可靠性(5)负载均衡D、计算机网络的分类(1)按分布范围分类1)广域网(WAN)2)城域网

2022-01-13 18:26:01 1593 1

原创 《PAT甲级词汇》

平时刷题积累的词汇,欢迎参考。digit                  数字comma             逗号specification     规范intege

2021-02-22 22:50:40 268

原创 PAT A1066 Root 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...

2020-03-31 18:57:03 231

原创 PAT A1053 Path of Equal Weight (30分)

Given a non-empty tree with root R, and with weight Wi assigned to each tree node T​i. The weight of a path from R to L is defined to be the sum of the weights of all the nodes along the path from R t...

2020-03-28 20:37:23 237

原创 PAT A1004 Counting Leaves (30分)

A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains one test case. Each case starts w...

2020-03-28 13:08:38 205

原创 PAT A1079 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.Starting from one root supplier, everyone on the...

2020-03-27 23:25:28 169

原创 PAT A1100 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, oct, nov, dec” on Mars, re...

2020-03-16 18:27:44 157

原创 PAT A1023 Have Fun with Numbers (20分)

Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number con...

2020-03-12 16:31:06 156

原创 windows系统下安装sklearn

A.sklearn库是在Numpy、Scipy和matplotlib的基础上开发而成的, 因此在sklearn的安装前,需要先安装这些依赖库。(1)安装Numpy去官网numpy.PyPI下载文件,注意文件的版本,如“numpy-1.18.1-cp37-cp37m-win_amd64.whl”表示该文件适用于widows操作系统下64位的Python3.7;在下载的文件的路径下打开window...

2020-03-10 11:00:11 2197

原创 PAT A1081 Rational Sum (20分)

Given N rational numbers in the form numerator/denominator, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case starts with a positive integ...

2020-03-09 21:29:09 274 2

原创 PAT A1101 Quick Sort (25分)

There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then the elements less than the pivot are moved to its le...

2020-03-07 14:28:56 169

原创 PAT A1048 Find Coins (25分)——二分查找实现

Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However,...

2020-03-04 12:10:51 214

原创 PAT A1044 Shopping in Mars (25分)

Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can be cut at any position ...

2020-03-03 21:41:54 165

原创 PAT A1085 Perfect Sequence (25分)——二分查找实现

Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the maximum and minimum numbers in the sequence, respecti...

2020-02-29 11:04:04 239

原创 PAT A1083 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 student records of which the grades ...

2020-02-12 16:23:05 168

原创 PAT A1075 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:Each input file cont...

2020-02-11 12:32:06 244

原创 PAT A1055 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 job, but concentrate only on the peopl...

2020-02-10 17:54:38 157

原创 PAT A1062 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 outstanding in both talent and virt...

2020-01-20 22:08:02 147

原创 PAT A1082 Read Number in Chinese (25分)

Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output Fu first if it is negative. For example, -123456789 is read as Fu yi Yi er Qian san Bai ...

2020-01-19 21:24:04 155

原创 PAT A1077 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. Such a preference is called ...

2020-01-09 20:26:44 470

原创 PAT A1061 Dating (20 分)

Sherlock Holmes received a note with some strange strings: Let’s date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strings...

2019-10-18 23:28:02 172

原创 PAT A1058 A+B in Hogwarts (20 分)

If you are a fan of Harry Potter, you would know the world of magic has its own currency system – as Hagrid explained it to Harry, “Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sic...

2019-10-18 22:43:22 152 2

原创 PAT A1001 A+B Format (20 分)

Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Specification:Each input fil...

2019-09-25 22:56:22 109

空空如也

空空如也

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

TA关注的人

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