自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 PAT 1046-1057

1046. Shortest Distance(20)原题地址:http://www.patest.cn/contests/pat-a-practise/1046解题思路:无他。求距离的题目,最好选一个参考点保存各节点的位置,这样两节点间的距离由位置差即可求得。代码如下:#include #include #define MAXN 100005int dis

2015-09-11 17:33:16 545

原创 PAT.1035-1045

早期代码使用 java , 后转c/c++。由于使用java代码的都是比较基础的题目,因此未贴出java代码。1035. Password (20)原题地址:http://www.patest.cn/contests/pat-a-practise/1035解题思路:简单字符串替换。1036. Boys vs Girls (25)原题地

2015-09-11 14:31:51 466

原创 1034. Head of a Gang (30)

原题地址:http://www.patest.cn/contests/pat-a-practise/1034One way that the police finds the head of a gang is to check people’s phone calls. If there is a phone call between A and B, we say that A and B is

2015-09-05 23:30:15 496

原创 1033. To Fill or Not to Fill (25)

原题地址:http://www.patest.cn/contests/pat-a-practise/1033With 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 ga

2015-09-05 23:22:40 399

原创 1032. Sharing (25)

原题地址:http://www.patest.cn/contests/pat-a-practise/1032To 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 sam

2015-09-05 23:16:58 402

原创 1030. Travel Plan (30)

原题地址:http://www.patest.cn/contests/pat-a-practise/1030A traveler’s map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a pro

2015-09-05 23:11:00 325

原创 1029. Median (25)

原题地址:http://www.patest.cn/contests/pat-a-practise/1029Given 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

2015-09-05 23:08:17 439

原创 1028. List Sorting (25)

原题地址:http://www.patest.cn/contests/pat-a-practise/1028Excel can sort records according to any column. Now you are supposed to imitate this function.InputEach input file contains one test case. For each

2015-09-05 23:03:39 441

原创 1026. Table Tennis (30)

原题地址:http://www.patest.cn/contests/pat-a-practise/1026A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables op

2015-09-05 22:57:57 573

原创 1025. PAT Ranking (25)

原题地址:http://www.patest.cn/contests/pat-a-practise/1025Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run

2015-09-05 22:28:46 380

原创 1022. Digital Library (30)

原题地址:http://www.patest.cn/contests/pat-a-practise/1022A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published ye

2015-09-05 22:16:01 419

原创 1021. Deepest Root (25)

原题地址:http://www.patest.cn/contests/pat-a-practise/1021A 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

2015-09-05 22:10:20 306

原创 1017. Queueing at Bank (25)

原题地址:http://www.patest.cn/contests/pat-a-practise/1017Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All th

2015-09-05 21:48:38 345

原创 1013. Battle Over Cities (25)

1013. Battle Over Cities (25)原题地址:http://www.patest.cn/contests/pat-a-practise/1013It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all

2015-09-05 21:23:13 309

原创 PAT 1003. Emergency

Emergency (25)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 each

2015-07-14 21:49:50 426

原创 PAT 1002. A+B for Polynomials

A+B for Polynomials (25)InputEach input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomial: K N1 aN1 N2 aN2 … NK aNK, where K is the number

2015-07-14 21:47:58 328

原创 PAT 1001.A+B Format

原题地址: http://www.patest.cn/contests/pat-a-practise/1001 1001. 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 comma

2015-07-14 21:42:57 292

原创 微博开放平台安卓应用程序开发初探

需要将微博SDK的demo原项目的libs文件夹除android-support-v4.jar外的文件都拷贝到新建的项目中。并且,将weibosdk.jar也要拷贝到新建项目的libs文件夹才有效。(在eclipse里面Build Path-->Add External Archives可能会有问题,如Failed resolution of: **)

2015-04-05 22:00:57 457

原创 Count and Say

Count and Say

2015-02-09 23:29:21 326

原创 Valid Parentheses

Valid Parentheses

2015-02-09 21:16:15 264

原创 在win7下安装使用Outlook Express 6发生can not load MSOE.DLL 错误的解决办法

关闭360等杀毒软件。

2015-02-05 18:36:00 1354

翻译 在win7系统中安装 Outlook Express

在win7系统中安装 Outlook Express,Protected Storage service 替换为 writable version。

2015-02-05 18:00:06 9194 1

原创 2015/02/01

2015-02-01 22:52:33 300

原创 U盘安装CentOS-6.5

首先准备CentOS-6.5的iso镜像文件和一个容量不小于镜像文件大小的U盘,这里由于我使用的是CentOS-6.5-i386-bin-DVD1.iso这个文件,其大小为3.58G,故准备的标称4G,实际可用3.76G的U盘也可以满足要求。然后使用UtlraISO软件将镜像文件写入U盘,过程同windowsPE盘的制作,如下图所示,选择写入硬盘映像即可。然后以此U盘为启动盘,引导电脑

2015-01-30 18:19:43 1089

空空如也

空空如也

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

TA关注的人

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