摘要:
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 ... 阅读全文
posted @ 2015-12-06 10:55
白夜行zz
阅读(173)
评论(0)
推荐(0)
摘要:
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yue(二叉树建立方法)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node cont... 阅读全文
posted @ 2015-12-06 10:52
白夜行zz
阅读(158)
评论(0)
推荐(0)
摘要:
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueShuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to av... 阅读全文
posted @ 2015-12-06 10:51
白夜行zz
阅读(152)
评论(0)
推荐(0)
摘要:
注意n的值很大的时候不能使用两层嵌套算法,这样执行时间将会很长时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueBeing unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of... 阅读全文
posted @ 2015-12-06 10:49
白夜行zz
阅读(218)
评论(0)
推荐(0)
摘要:
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest symmetric sub-string is "s PAT&TAP s", hence you must... 阅读全文
posted @ 2015-12-06 10:46
白夜行zz
阅读(188)
评论(0)
推荐(0)
摘要:
1039. Course List for Student (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueZhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all th... 阅读全文
posted @ 2015-12-06 10:44
白夜行zz
阅读(179)
评论(0)
推荐(0)
摘要:
1,注意加法越界的问题,用long long可以存一次和,相加之后要写加法器来做2,注意vector 中是用 size() 函数来表示其内部的个数的。 结尾附上常用vector函数The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning th... 阅读全文
posted @ 2015-12-06 10:43
白夜行zz
阅读(151)
评论(0)
推荐(0)
摘要:
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such like 32-321-3214-0229-8... 阅读全文
posted @ 2015-12-06 10:43
白夜行zz
阅读(191)
评论(0)
推荐(0)
摘要:
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.Input Specification:Each input file contains one test ... 阅读全文
posted @ 2015-12-06 10:42
白夜行zz
阅读(210)
评论(0)
推荐(0)
摘要:
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L ... 阅读全文
posted @ 2015-12-06 10:41
白夜行zz
阅读(154)
评论(0)
推荐(0)
浙公网安备 33010602011771号