自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(52)
  • 资源 (1)
  • 收藏
  • 关注

原创 pat 1034

1034. Head of a Gang (30)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueOne way that the police finds the head of a gang is to check

2014-03-22 21:14:24 672

原创 pat 1067

1067. Sort with Swap(0,*) (25)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueGiven any permutation of the numbers {0, 1, 2,..., N-1}

2014-03-16 14:37:40 624

原创 pat 1075

1075. PAT Judge (25)时间限制   200 ms内存限制   32000 kB代码长度限制   16000 B判题程序     Standard     作者     CHEN, YueThe ranklist of PAT is generated from the st

2014-03-16 10:03:33 769

原创 pat 1062

1062. Talent and Virtue (25)时间限制 200 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, LiAbout 900 years ago, a Chinese philosopher Sima Guang wrot

2014-03-15 09:30:06 557

原创 pat 1011

1011. World Cup Betting (20)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueWith the 2010 FIFA World Cup running, football fans the w

2014-03-15 08:45:38 537

原创 pat 1036

1036. Boys vs Girls (25)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueThis time you are asked to tell the difference between the lo

2014-03-14 20:50:36 549

原创 pat 1044

1044. Shopping in Mars (25)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueShopping in Mars is quite a different experience. The Mars

2014-03-14 19:53:01 655

原创 pat 1051

1051. Pop Sequence (25)时间限制 10 ms内存限制 32000 kB代码长度限制 16000 B判题程序 StandardGiven a stack which can keep M numbers at most. Push N numbers in the order of 1,

2014-03-14 15:53:52 619

原创 pat 1060

1060. Are They Equal (25)时间限制 50 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueIf a machine can save only 3 significant digits, the float nu

2014-03-14 11:28:26 639

原创 pat 1074

1074. Reversing Linked List (25)时间限制 300 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueGiven a constant K and a singly linked list L, you ar

2014-03-13 21:03:58 927

原创 pat 1076

1076. Forwards on Weibo (30)时间限制 3000 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueWeibo is known as the Chinese version of Twitter. One us

2014-03-13 15:31:41 817

原创 pat 1069

1069. The Black Hole of Numbers (20)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueFor any 4-digit integer except the ones with all

2014-03-13 09:35:31 850

原创 pat 1072

1072. Gas Station (30)时间限制 200 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueA gas station has to be built at such a location that the minim

2014-03-12 21:02:42 765

原创 pat 1071

1071. Speech Patterns (25)时间限制 300 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 HOU, QimingPeople often have a preference among synonyms of the same

2014-03-12 19:08:57 568

原创 pat 1070

1070. Mooncake (25)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueMooncake is a Chinese bakery product traditionally eaten during th

2014-03-12 15:19:56 669

原创 pat 1047

1047. Student List for Course (25)时间限制 400 ms内存限制 64000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueZhejiang University has 40000 students and provides

2014-03-12 14:42:27 599

原创 pat 1026

1026. Table Tennis (30)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueA table tennis club has N tables available to the public. The

2014-03-11 20:38:45 582

原创 pat 1058

1058. A+B in Hogwarts (20)时间限制 50 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueIf you are a fan of Harry Potter, you would know the world o

2014-03-11 15:42:41 701

原创 pat 1059

1059. Prime Factors (25)时间限制 50 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 HE, QinmingGiven any positive integer N, you are supposed to find all o

2014-03-11 15:21:35 620

原创 pat 1021

1021. Deepest Root (25)时间限制 1500 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueA graph which is connected and acyclic can be considered a tr

2014-03-11 11:10:55 722

原创 pat 1048

1048. Find Coins (25)时间限制 50 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueEva loves to collect coins from all over the universe, including

2014-03-11 08:55:31 630

原创 pat 1053

1053. Path of Equal Weight (30)时间限制 10 ms内存限制 32000 kB代码长度限制 16000 B判题程序 StandardGiven a non-empty tree with root R, and with weight Wi assigned to each t

2014-03-10 18:23:23 741

原创 pat 1068

1068. Find More Coins (30)时间限制 150 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueEva loves to collect coins from all over the universe, incl

2014-03-10 10:29:18 698

原创 pat 1032

1032. Sharing (25)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueTo store English words, one method is to use linked lists and store

2014-03-10 08:43:36 629

原创 pat 1063

1063. Set Similarity (25)时间限制 300 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueGiven two sets of integers, the similarity of the sets is de

2014-03-09 15:58:26 563

原创 pat 1064

1064. Complete Binary Search Tree (30)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueA Binary Search Tree (BST) is recursively defin

2014-03-09 15:00:30 557

原创 天勤模拟赛1 朋友圈

题目描述小明所在的学校有N个学生,形成M个俱乐部。每个俱乐部里的学生有着一定相似的兴趣爱好,形成一个朋友圈。一个学生可以同时属于若干个不同的俱乐部。根据“我的朋友的朋友也是我的朋友”这个推论可以得出,如果A和B是朋友,且B和C是朋友,则A和C也是朋友。请编写程序计算最大朋友圈中有多少人。输入格式输入包含多组测试数据,每组输入的第一行包含两个正整数

2014-03-09 10:11:38 792

原创 天勤模拟赛1 二叉树问题

题目描述现给定一棵二叉树的先序遍历序列和中序遍历序列,要求你计算该二叉树的高度。输入格式输入包含多组测试数据,每组输入首先给出正整数N(输出对于每组输入,输出一个整数,即该二叉树的高度。样例输入9ABDFGHIECFDHGIBEAC7Abcde

2014-03-09 10:08:52 894

原创 天勤模拟赛1 最爱回文串

题目描述土豪大学的高富帅实验室里有一个回文帝,名叫小明。小明每次看到一个字符串的时候总喜欢看看它是不是回文串,如果这个字符串不是回文串的话,他就会将这个字符串里的字符重新排列,看看能不能构成回文串。现在小明想让你写一个程序来帮助他实现上述过程。输入格式输入包含多组测试数据。每组输入包含一个字符串,长度不超过5,不包含空格等空白符。

2014-03-09 10:06:21 800

原创 pat 1061

1061. Dating (20)时间限制 50 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueSherlock Holmes received a note with some strange strings: "Let's dat

2014-03-08 21:17:18 530

原创 pat 1031

1031. Hello World for U (20)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueGiven any string of N (>=5) characters, you are asked to

2014-03-08 11:17:33 509

原创 pat 1054

1054. The Dominant Color (20)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 StandardBehind the scenes in the computer's memory, color is always talked about a

2014-03-08 10:59:07 610

原创 pat 1052

1052. Linked List Sorting (25)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 StandardA linked list consists of a series of structures, which are not necessari

2014-03-08 10:44:11 649

原创 pat 1050

1050. String Subtraction (20)时间限制 10 ms内存限制 32000 kB代码长度限制 16000 B判题程序 StandardGiven two strings S1 and S2, S = S1 - S2 is defined to be the remaining str

2014-03-07 20:27:02 562

转载 pat 1045

1045. Favorite Color Stripe (30)时间限制 200 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueEva is trying to make her own color stripe out of a g

2014-03-07 19:47:48 629

原创 pat 1037

1037. Magic Coupon (25)时间限制 100 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueThe magic shop in Mars is offering some magic coupons. Each co

2014-03-07 17:13:46 547

原创 pat 1043

1043. Is It a Binary Search Tree (25)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueA Binary Search Tree (BST) is recursively define

2014-03-07 15:57:24 681

原创 pat 1042

1042. Shuffling Machine (20)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueShuffling is a procedure used to randomize a deck of play

2014-03-07 10:38:22 689

原创 pat 1020

1020. Tree Traversals (25)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueSuppose that all the keys in a binary tree are distinct pos

2014-03-06 20:51:11 651

原创 pat 1018

1018. Public Bike Management (30)时间限制 400 ms内存限制 32000 kB代码长度限制 16000 B判题程序 Standard作者 CHEN, YueThere is a public bike service in Hangzhou City whic

2014-03-06 19:21:36 648

java课件ppt

主要适用于初学者

2012-01-03

空空如也

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

TA关注的人

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