博客转移:dwylkz.github.io
sgeteternal · 共 41 篇文章
HDU 1075 What Are You Talking About
What Are You Talking About Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 102400/204800 K (Java/Others) Total Submission(s): 4539Accepted Submission(s): 1368 Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian…
2011-08-04T11:00:00Z · Data-Struct · Trie · String · HDU · 评论(0)
HDU 1370 Biorhythms
Biorhythms Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 669Accepted Submission(s): 266 Problem Description Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the phys…
2142 HDU box
box Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3730Accepted Submission(s): 674 Problem Description One day, winnie received a box and a letter. In the letter, there are three integers and five operations(+,-,*,/,%). If one of the three integ…
HDU 1022 Train Problem I
Train Problem I Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6599Accepted Submission(s): 2409 Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(bec…
2011-08-02T21:00:00Z · Data-Struct · HDU · OJ · Stack · 评论(0)
HDU 2095 find your present (2)
find your present (2) Time Limit: 1000/2000 MS (Java/Others)Memory Limit: 32768/1024 K (Java/Others) Total Submission(s): 6852Accepted Submission(s): 2509 Problem Description In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of prese…
2011-08-02T16:13:00Z · Mathmatic · HDU · OJ · Statistic · 评论(0)
HDU 1058 Humble Numbers
Humble Numbers Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6116Accepted Submission(s): 2652 Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15…
2011-08-02T15:55:00Z · Mathmatic · HDU · OJ · Priority-Queue · DP · 评论(0)
HDU 3791 二叉搜索树
二叉搜索树 Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 218Accepted Submission(s): 96 Problem Description 判断两序列是否为同一二叉搜索树序列 Input 开始一个数n,(1<=n<=20) 表示有n个需要判断,n= 0 的时候输入结束。 接下去一行是一个序列,序列长度小于10,包含(0~9)的数字,没有重复数字,根据这个序列可以构造出一颗二叉搜索树。 接下去的n行有n个序列,每个序列格式…
2011-08-02T14:26:00Z · Plant-Tree · Data-Struct · BST · HDU · OJ · 评论(0)
HDU 2722 Here We Go(relians) Again
Here We Go(relians) Again Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 162Accepted Submission(s): 99 Problem Description The Gorelians are a warlike race that travel the universe conquering new worlds as a form of recreation. Given their viole…
2011-08-02T00:06:00Z · HDU · OJ · Shortest-Path · · 评论(0)
HDU 2151 Worm
Worm Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1420Accepted Submission(s): 902 Problem Description 自从见识了平安夜苹果的涨价后,Lele就在他家门口水平种了一排苹果树,共有N棵。 突然Lele发现在左起第P棵树上(从1开始计数)有一条毛毛虫。为了看到毛毛虫变蝴蝶的过程,Lele在苹果树旁观察了很久。虽然没有看到蝴蝶,但Lele发现了一个规律:每过1分钟,毛毛虫会随机从一棵树爬到…
2011-08-01T20:48:00Z · HDU · OJ · DP · Combinatorial-Mathematics · 评论(0)
PKU 2352 Stars
Stars Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 18171 Accepted: 7918 Description Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not higher and n…
2011-07-31T21:47:00Z · Data-Struct · OJ · POJ · Binary-Index-Tree · 评论(0)
PKU 2777 Count Color
Count Color Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 21363 Accepted: 6218 Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L centimeter, …
2011-07-31T21:31:00Z · Plant-Tree · Data-Struct · OJ · POJ · Graceful-Segment-Tree · 评论(0)
PKU 2774 Long Long Message
Long Long Message Time Limit: 4000MS Memory Limit: 131072K Total Submissions: 12008 Accepted: 4843 Case Time Limit: 1000MS Description The little cat is majoring in physics in the capital of Byterland. A piece of sad news comes to him these days: his mother is getting ill. Being worried about spend…
2011-07-31T21:26:00Z · Data-Struct · String · OJ · Pretty-Suffix-Array · POJ · 评论(0)
HDU 2098 分拆素数和
分拆素数和 Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8601Accepted Submission(s): 3740 Problem Description 把一个偶数拆成两个不同素数的和,有几种拆法呢? Input 输入包含一些正的偶数,其值不会超过10000,个数不会超过500,若遇0,则结束。 Output 对应每个偶数,输出其拆成不同素数的个数,每个结果占一行。 Sample Input 30 26 0 Sample Out…
ZOJ 3512 Financial Fraud .
Financial Fraud Time Limit: 3 Seconds Memory Limit: 65536 KB Bernard Madoff is an American former stock broker, investment adviser, non-executive chairman of the NASDAQ stock market, and the admitted operator of what has been described as the largest Ponzi scheme in history. Two programmers, Jerome…
2011-07-31T20:49:23Z · Mathmatic · Plant-Tree · Data-Struct · OJ · Statistic · ZOJ · Leftist-Tree · 评论(2)
HDU 1798 Tell me the area .
Tell me the area Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 900 Accepted Submission(s): 284 Problem Description There are two circles in the plane (shown in the below picture), there is a common area between the two circles. The problem is …