Fork me on GitHub

随笔分类 -  【104】PAT

摘要:A long-distance telephone company charges its customers by the following rules: 一个长途电话公司费用告诉它的顾客需要遵循以下的规则 Making a long-distance call costs a certain 阅读全文
posted @ 2016-08-10 20:57 LinkinStar 阅读(396) 评论(0) 推荐(0) 编辑
摘要:A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. 一个反素数是任意数字系统中,不仅本身是素数反的也是素数 For example in t 阅读全文
posted @ 2016-08-07 17:36 LinkinStar 阅读(556) 评论(0) 推荐(0) 编辑
摘要:Suppose a bank has N windows open for service. 一个银行有N个服务的窗口 There is a yellow line in front of the windows which devides the waiting area into two par 阅读全文
posted @ 2016-08-07 16:40 LinkinStar 阅读(352) 评论(0) 推荐(0) 编辑
摘要:It is vitally important to have all the cities connected by highways in a war. 在一个战争中用高速公路把所有的城市连接起来是十分重要的。 If a city is occupied by the enemy, all th 阅读全文
posted @ 2016-08-04 21:27 LinkinStar 阅读(305) 评论(1) 推荐(0) 编辑
摘要:To evaluate the performance of our first year CS majored students, 为了计算第一年计算机科学学生的表现 we consider their grades of three courses only: 我们从三个方面考虑我们的成绩 C 阅读全文
posted @ 2016-07-28 21:17 LinkinStar 阅读(245) 评论(0) 推荐(0) 编辑
摘要:With the 2010 FIFA World Cup running, 随着2010世界杯的举行 football fans the world over were becoming increasingly excited as the best players from the best t 阅读全文
posted @ 2016-07-25 23:49 LinkinStar 阅读(290) 评论(0) 推荐(0) 编辑
摘要:Given a pair of positive integers, for example, 6 and 110, 给出一对正整数,例如6和110 can this equation 6 = 110 be true? 6=110这个等式能是对的吗 The answer is "yes", if 6 阅读全文
posted @ 2016-07-23 21:20 LinkinStar 阅读(622) 评论(0) 推荐(0) 编辑
摘要:多项式乘法 和多项式加法类似,参考之前多项式加法的代码改改就出来了。 主要是注意一下。最大次数应该会有1000000,然后按照乘法规则来,分配率就没有问题 阅读全文
posted @ 2016-07-23 16:39 LinkinStar 阅读(128) 评论(0) 推荐(0) 编辑
摘要:Given a sequence of K integers { N1, N2, ..., NK }. 给出一个连续的K个整数 A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 <= i <= j <= K 阅读全文
posted @ 2016-07-23 16:09 LinkinStar 阅读(684) 评论(0) 推荐(0) 编辑
摘要:At the beginning of every day, the first person who signs in the computer room will unlock the door, 在每天的开始,第一个签到进入计算机房间的人将会解锁这门 and the last one who 阅读全文
posted @ 2016-07-16 21:46 LinkinStar 阅读(434) 评论(0) 推荐(0) 编辑
摘要:水题,和中文没啥区别不说了。 阅读全文
posted @ 2016-07-15 22:09 LinkinStar 阅读(196) 评论(0) 推荐(0) 编辑
摘要:A family hierarchy is usually presented by a pedigree tree. 一个家族的层次结构经常用一个血缘树来呈现。 Your job is to count those family members who have no child. 你的工作是计算 阅读全文
posted @ 2016-07-15 22:04 LinkinStar 阅读(2226) 评论(0) 推荐(1) 编辑
摘要:As an emergency rescue team leader of a city, you are given a special map of your country. 作为一个城市的紧急救援队的领导人,你需要给出一个对于你们国家特别的地图。 The map shows several 阅读全文
posted @ 2016-07-14 22:09 LinkinStar 阅读(876) 评论(0) 推荐(0) 编辑
摘要:This time, you are supposed to find A+B where A and B are two polynomials. 这一次,你被要求计算A+B当A和B是两个多项式的时候。 Input Each input file contains one test case. E 阅读全文
posted @ 2016-07-13 22:26 LinkinStar 阅读(677) 评论(0) 推荐(0) 编辑
摘要:时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B Calculate a + b and output the sum in standard format 计算a+b并且输出标准形式的和 -- that is, the digits must be separate 阅读全文
posted @ 2016-07-13 21:22 LinkinStar 阅读(333) 评论(0) 推荐(0) 编辑
摘要:People in Mars represent the colors in their computers in a similar way as the Earth people. 火星人在他们的计算机上颜色的表示方式和地球人相似。 That is, a color is represented 阅读全文
posted @ 2016-07-11 22:58 LinkinStar 阅读(260) 评论(0) 推荐(0) 编辑
摘要:这次终于觉得智商不够用了,特么的。 总结给你的经验,对于这样字符串的题目,经常会出现一种叫做递归定义的东西。 还有一种叫做,相同的字母表示相同的字符串。 这道题目一共有三个条件。 1. 字符串中必须仅有P, A, T这三种字符,不可以包含其它字符; 2. 任意形如 xPATx 的字符串都可以获得“答 阅读全文
posted @ 2016-07-08 23:17 LinkinStar 阅读(345) 评论(0) 推荐(0) 编辑
摘要:有毒,真的有毒,难题对于简单题影响太大了,想的东西太多,总会在考虑,会不会时间超限,数据量有多大,三个循环就太慢了。。。。 总之我是真的不愿意看到这样的程序能过的,总觉得有更好的,却总是找不更好的额。。。。 阅读全文
posted @ 2016-07-08 00:30 LinkinStar 阅读(133) 评论(0) 推荐(0) 编辑
摘要:我脑洞大了。。。。。 以为是个找规律。。。。。 原来只是模拟。。。。。 我相信肯定是有规律的。。。。。 但是我就是不愿意了。。。。。 阅读全文
posted @ 2016-07-06 16:17 LinkinStar 阅读(123) 评论(0) 推荐(0) 编辑
摘要:Complete Binary Search Tree (30) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B A Binary Search Tree (BST) is recursively defined as a binary tree which has 阅读全文
posted @ 2016-07-05 10:38 LinkinStar 阅读(397) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示