Pat—甲级
文章平均质量分 85
Puya
人生不设限 没有不可能
展开
-
1011. World Cup Betting (20)
1011. World Cup Betting (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best ...原创 2018-03-15 13:08:01 · 181 阅读 · 0 评论 -
1006. Sign In and Sign Out (25)
1006. Sign In and Sign Out (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAt the beginning of every day, the first person who signs in the computer room will unlock the door, and the la...原创 2018-03-11 16:35:14 · 193 阅读 · 0 评论 -
1119. Pre- and Post-order Traversals (30)【已知前序和后序求中序】
1119. Pre- and Post-order Traversals (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Special作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be...原创 2018-03-17 19:30:53 · 228 阅读 · 0 评论 -
1107. Social Clusters (30)【并查集】
1107. Social Clusters (30)时间限制1000 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWhen register on a social network, you are always asked to specify your hobbies in order to find some potential fri...原创 2018-03-17 20:25:10 · 216 阅读 · 0 评论 -
【ANOJ】1011万妖穴
万妖穴Case Time Limit: 500 MS (Others) / 1000 MS (Java) Case Memory Limit: 256 MB (Others) / 512 MB (Java)Accepted: 245 Total Submission: 697查看我的提交显示标签Problem Description“万妖穴中有若干小穴,每处小穴中皆有一只恶妖...原创 2018-03-12 14:55:47 · 483 阅读 · 0 评论 -
1007. Maximum Subsequence Sum (25)
1007. Maximum Subsequence Sum (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, .....原创 2018-03-12 17:10:41 · 233 阅读 · 0 评论 -
1008. Elevator (20)
1008. Elevator (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers deno...原创 2018-03-13 13:42:48 · 155 阅读 · 0 评论 -
1009. Product of Polynomials (25)
1009. Product of Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A*B where A and B are two polynomials.Input Specification:Each input file...原创 2018-03-13 14:40:34 · 194 阅读 · 0 评论 -
1005. Spell It Right (20)
1005. Spell It Right (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the...原创 2018-03-11 15:58:16 · 229 阅读 · 0 评论 -
1099. Build A Binary Search Tree (30)
1099. Build A Binary Search Tree (30)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The...原创 2018-03-17 15:38:22 · 223 阅读 · 0 评论 -
1127. ZigZagging on a Tree (30)【已知中序与后序求层序遍历】
1127. ZigZagging on a Tree (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determin...原创 2018-03-17 14:47:50 · 253 阅读 · 0 评论 -
1001. A+B Format (20)
1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by co...原创 2018-03-09 17:48:34 · 186 阅读 · 0 评论 -
1002. A+B for Polynomials (25)
1002. A+B for Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test...原创 2018-03-09 20:11:34 · 204 阅读 · 0 评论 -
1013. Battle Over Cities (25)
1013. Battle Over Cities (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIt is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy...原创 2018-03-16 15:32:06 · 181 阅读 · 0 评论 -
1014. Waiting in Line (30)
1014. Waiting in Line (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the wait...原创 2018-03-16 19:15:20 · 190 阅读 · 0 评论 -
1003. Emergency (25)
1003. Emergency (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAs an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered...原创 2018-03-10 20:04:38 · 173 阅读 · 0 评论 -
1004. Counting Leaves (30)
1004. Counting Leaves (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no ch...原创 2018-03-10 22:11:25 · 173 阅读 · 0 评论 -
1015. Reversible Primes (20)
1015. Reversible Primes (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For exam...原创 2018-03-17 09:55:41 · 188 阅读 · 0 评论 -
1138. Postorder Traversal (25)【已知前序和中序求后序】
1138. Postorder Traversal (25)时间限制600 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traver...原创 2018-03-17 13:28:25 · 268 阅读 · 0 评论