自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 HBuilderX使用Vant组件库

HBuilderX使用Vant组件库 HBuilderX是一款由国人开发的开发工具,其官网称其为轻如编辑器、强如IDE的合体版本。但是官方的社区中关于Vant组件的安装大多都是针对微信小程序开发安装Vant Weapp,鄙人尝试了各种方法,经历各种错误后终于成功安装vant组件库,在这里分享一下使用HBuilderX进行vue.js开发时安装Vant组件库的经验,使用的版...

2019-08-11 22:03:00 3930

转载 Java断点续传(基于socket与RandomAccessFile的简单实现)

Java断点续传(基于socket与RandomAccessFile的简单实现)  这是一个简单的C/S架构,基本实现思路是将服务器注册至某个空闲端口用来监视并处理每个客户端的传输请求。  客户端先获得用户给予的需传输文件与目标路径,之后根据该文件实例化RandomAccessFile为只读,之后客户端向服务器发送需传输的文件名文件大小与目标路径,服务器没接收到一个客户端的请求就...

2019-05-09 16:58:00 136

转载 PTA (Advanced Level) 1009 Product of Polynomials

1009 Product of Polynomials  This time, you are supposed to findA×BwhereAandBare two polynomials.Input Specification:  Each input file contains one test case. Each case occupies 2 lin...

2019-04-17 21:00:00 165

转载 Qt5——从零开始的学生管理系统

Qt教程——从零开始的学生管理系统(文件)一、项目设计  1、需求分析  记录并处理学生成绩信息。  1)添加新的学生数据;  2)根据学号对已有的学生数据进行修改;  3)根据学号删除已存在的学生信息;  4)根据学号查询学生信息;  5)根据各门成绩与平均成绩进行排序。  2、窗口设计  1)菜单窗口;  2)添加学生窗口;  3)修改...

2019-04-17 14:44:00 3365

转载 2015年第六届蓝桥杯C/C++程序设计本科B组决赛 完美正方形

完美正方形  如果一些边长互不相同的正方形,可以恰好拼出一个更大的正方形,则称其为完美正方形。历史上,人们花了很久才找到了若干完美正方形。比如:如下边长的22个正方形2 3 4 6 7 8 12 13 14 15 16 17 18 21 22 23 24 26 27 28 50 60如【图1.png】那样组合,就是一种解法。  此时,紧贴上边沿的是:60 50,紧贴下边沿...

2019-04-11 21:54:00 251

转载 PTA (Advanced Level) 1008 Elevator

Elevator  The highest building in our city has only one elevator. A request list is made up withNpositive numbers. The numbers denote at which floors the elevator will stop, in specified order...

2019-04-08 17:59:00 113

转载 PTA (Advanced Level) 1007 Maximum Subsequence Sum

Maximum Subsequence Sum  Given a sequence ofKintegers {N​1​​,N​2​​, ...,N​K​​}. A continuous subsequence is defined to be {N​i​​,N​i+1​​, ...,N​j​​} where1. The Maximum Subsequence i...

2019-04-08 17:25:00 88

转载 PTA (Advanced Level) 1006 Sign In and Sign Out

Sign In and Sign Out  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 the records o...

2019-04-03 20:17:00 100

转载 PTA (Advanced Level) 1005 Spell It Right

Spell It Right  Given a non-negative integerN, your task is to compute the sum of all the digits ofN, and output every digit of the sum in English.Input Specification:  Each input file co...

2019-04-02 21:48:00 101

转载 PTA (Advanced Level) 1004 Counting Leaves

Counting Leaves  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 t...

2019-04-02 21:04:00 96

转载 Qt5——从零开始的Hello World教程(Qt Creator)

简单Qt教程一、打开Qt Creator  本次的目的是用Qt Creator建立一个Hello World项目,在安装Qt之后,首先要打开QtCreator。  就是它啦,打开后会显示如下页面。二、建立新项目  点击文件——新建文件或项目 或者使用快捷键Ctrl+N便可以打开新建项目菜单。  这里选择其他项目——Empty qmake Projec...

2019-04-02 17:10:00 665

转载 PTA (Advanced Level) 1003 Emergency

Emergency  As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in e...

2019-03-29 21:14:00 131

转载 PTA (Advanced Level) 1002 A+B for Polynomials

1002A+B for Polynomials  This time, you are supposed to findA+BwhereAandBare two polynomials.Input Specification:  Each input file contains one test case. Each case occupies 2 lines,...

2019-03-29 19:12:00 161

转载 PTA (Advanced Level) 1001 A+B Format

1001A+B Format  Calculatea+band 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 Spe...

2019-03-28 19:24:00 154

转载 HDU 1272 小希的迷宫

小希的迷宫上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个房间有且仅有一条路径可以相通(除非走了回头路)。小希现在把她的设计...

2019-02-25 14:03:00 195

转载 FZU 2150 Fire Game

Fire Game  Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just empty...

2019-02-24 17:20:00 76

转载 HihoCoder - 1478 水陆距离

水陆距离描述  给定一个N x M的01矩阵,其中1表示陆地,0表示水域。对于每一个位置,求出它距离最近的水域的距离是多少。   矩阵中每个位置与它上下左右相邻的格子距离为1。输入  第一行包含两个整数,N和M。  以下N行每行M个0或者1,代表地图。  数据保证至少有1块水域。  对于30%的数据,1 <= N, M <= 100 ...

2019-01-28 20:00:00 179

转载 HihoCoder - 1040 矩形判断

矩形判断  给出平面上4条线段,判断这4条线段是否恰好围成一个面积大于0的矩形。Input  输入第一行是一个整数T(1<=T<=100),代表测试数据的数量。  每组数据包含4行,每行包含4个整数x1, y1, x2, y2 (0 <= x1, y1, x2, y2 <= 100000);其中(x1, y1), (x2,y2)代表一条线段的两...

2019-01-28 19:13:00 206

转载 PTA (Advanced Level) 1028 List Sorting

List Sorting  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, the ...

2019-01-26 15:44:00 77

转载 PTA (Advanced Level) 1027 Colors in Mars

Colors in Mars  People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are fo...

2019-01-26 15:26:00 78

转载 PTA (Advanced Level) 1021 Deepest Root

Deepest Root  A graph which is connected and acyclic can be considered a tree. The hight of the tree depends on the selected root. Now you are supposed to find the root that results in a ...

2019-01-25 15:31:00 126

转载 PTA (Advanced Level) 1024 Palindromic Number

Palindromic Number  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 numb...

2019-01-23 21:39:00 85

转载 PTA (Advanced Level) 1023 Have Fun with Numbers

Have Fun with NumbersNotice 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 ...

2019-01-23 20:28:00 102

转载 PTA (Advanced Level) 1022 Digital Library

Digital Library  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 a...

2019-01-22 21:43:00 117

转载 PTA (Advanced Level) 1020 Tree Traversals

Tree Traversals  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 order trave...

2019-01-08 21:01:00 107

转载 PTA (Advanced Level) 1019 General Palindromic Number

General Palindromic NumberA 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 digi...

2019-01-01 20:05:00 105

转载 PTA (Advanced Level) 1018 Public Bike Management

Public Bike Management  There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return i...

2019-01-01 19:42:00 232

转载 PTA (Advanced Level) 1016 Phone Bills

Phone Bills  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 when ...

2018-12-20 19:33:00 98

转载 PTA (Advanced Level) 1015 Reversible Primes

Reversible Primes  Areversible primein any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because i...

2018-12-18 16:47:00 141

转载 PTA (Advanced Level) 1014 Waiting in Line

Waiting in Line  Suppose a bank hasNwindows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait...

2018-12-17 21:47:00 91

转载 PTA (Advanced Level) 1013 Battle Over Cities

Battle Over Cities  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 closed. We must...

2018-12-16 20:34:00 122

转载 PTA (Advanced Level) 1012 The Best Rank

The Best Rank  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 or Linear...

2018-12-15 20:30:00 95

转载 PTA (Advanced Level) 1010 Radix

Radix  Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer isyes, if 6 is a decimal number and 110 is a binary number.  Now for any pair ...

2018-12-14 14:38:00 110

转载 PTA (Advanced Level) 1009 Product of Polynomials

Product of Polynomials(25 分)This time, you are supposed to findA×BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2...

2018-12-12 19:22:00 78

转载 HDOJ 1176 免费馅饼

免费馅饼  都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所以他只能在小径上接。由于gameboy平时老呆在房间里玩游戏,虽然在游戏中是个身手敏捷的高手,...

2018-12-08 21:24:00 126

转载 HDU 1074 Doing Homework

Doing Homework  Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands i...

2018-12-08 16:07:00 62

转载 HDU 1029 Ignatius and the Princess IV

Ignatius and the Princess IV  "OK, you are not too bad, em... But you can never pass the next test." feng5166 says.  "I will tell you an odd number N, and then N integers. There will be a spec...

2018-12-07 15:18:00 61

转载 HDU 1495 非常可乐

非常可乐  大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正好装满一瓶) ,它们三个之间可以相互倒可乐 (都是没有刻度的,且 ...

2018-12-07 14:57:00 65

转载 POJ 2251 Dungeon Master

Dungeon Master  You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to mov...

2018-12-06 20:11:00 68

转载 HDU 3085 Nightmare Ⅱ

Nightmare Ⅱ  Last night, little erriyue had a horrible nightmare. He dreamed that he and his girl friend were trapped in a big maze separately. More terribly, there are two ghosts in the maze. ...

2018-12-05 20:00:00 118

空空如也

空空如也

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

TA关注的人

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