![](https://img-blog.csdnimg.cn/20200404181045928.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
ICPC-水题题解三
文章平均质量分 88
ICPC水题题解
海岛Blog
专注于程序设计及其竞赛,专注于集成电路EDA设计
展开
-
UVA10188 Automated Judge Script【水题】
The judges from the programming contests are known to be very mean and very lazy. We, judges, want less work and more Wrong Answers! So, we’d like you to help us and write an automated judge script to judge solution runs from teams all over the world. All原创 2021-02-01 23:01:16 · 424 阅读 · 0 评论 -
UVA1237 LA4142 Expert Enough?【迭代】
Auto-mobile Charting & Manufacturing (ACM) is a company that specializes in manufacturing automobile spare parts. Being one of the leading automotive companies in the world, ACM are sure to keep u...原创 2020-04-18 22:26:57 · 266 阅读 · 0 评论 -
UVA11701 Cantor【水题】
The ternary expansion of a number is that number written in base 3. A number can have more than one ternary expansion. A ternary expansion is indicated with a subscript 3. For example, 1 = 13 = 0.222 ...原创 2020-04-18 11:03:27 · 564 阅读 · 0 评论 -
UVA10567 Helping Fill Bates【水题】
Everyone knows Fill Bates but I guess fewer people know that he was famous in his high school days for a different reason. I just put below the exact lines from one of his short biographies: &nb...原创 2020-04-16 21:09:59 · 311 阅读 · 0 评论 -
UVA957 Popes【水题】
On the occasion of Pope John Paul II death, the American weekly magazine Time observed the largest number of Popes to be selected in a 100-year period was 28, from 867 (Adrian II) to 965 (John XIII). ...原创 2020-04-16 20:42:50 · 316 阅读 · 0 评论 -
UVA161 POJ1211 Traffic Lights【水题】
Traffic LightsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 649 Accepted: 208DescriptionOne way of achieving a smooth and economical drive to work is to `catch’ every traffic light, ...原创 2020-04-16 17:35:53 · 457 阅读 · 0 评论 -
UVA11586 Train Tracks【水题】
Andy loves his set of wooden trains and railroad tracks. Each day, Daddy has to build a new track for him. The tracks he likes best form a simple loop with no branches or dead ends, so he can run his ...原创 2020-04-16 10:34:12 · 316 阅读 · 0 评论 -
UVA12478 Hardest Problem Ever (Easy)【水题】
IUT once asked a group of people to prepare a number of problems for their yearly national contest. That group of people (let’s call them the setters) is really enthusiastic problem solvers, they grat...原创 2020-04-16 00:48:03 · 331 阅读 · 1 评论 -
POJ1654 Area【水题】
AreaTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 23051 Accepted: 6208DescriptionYou are going to compute the area of a special kind of polygon. One vertex of the polygon is the orig...原创 2020-04-14 23:20:30 · 236 阅读 · 0 评论 -
UVA855 Lunch in Grid City【水题】
Grid city is a city carefully planned. Its street-map very much resembles that of downtown Manhattan in New York. Streets and avenues are orderly setup like a grid.A group of friends living in Grid c...原创 2020-03-29 15:03:53 · 408 阅读 · 0 评论 -
UVA927 Integer Sequences from Addition of Terms【迭代计算】
We consider sequences formed from the addition of terms of a given sequence. Let {an}, n = 1, 2, 3, . . ., be an arbitrary sequence of integer numbers; d a positive integer. We construct another seque...原创 2020-03-29 12:21:17 · 314 阅读 · 0 评论 -
UVA154 Recycling【水题】
Kerbside recycling has come to New Zealand, and every city from Auckland to Invercargill has leapt on to the band wagon. The bins come in 5 different colours — red, orange, yellow, green and blue — an...原创 2020-03-26 00:16:00 · 459 阅读 · 0 评论 -
POJ1806 Manhattan 2025【水题】
Manhattan 2025Time Limit: 1000MS Memory Limit: 30000KTotal Submissions: 2639 Accepted: 1204DescriptionBackgroundManhattan in the year 2025 - it is so densely populated that its old two-dimensio...原创 2020-04-14 22:17:35 · 300 阅读 · 0 评论 -
UVA11233 POJ3366 HDU1804 Deli Deli【水题】
Deli DeliTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2699 Accepted Submission(s): 1461Problem DescriptionMrs. Deli is running the del...原创 2020-03-09 22:18:58 · 288 阅读 · 0 评论 -
UVA11936 The Lazy Lumberjacks【水题】
Once upon a time in a far, far away forest, there was a team of lazy lumberjacks. Since they were too lazy to cut trees, they were always figuring out ways to sneak out of work. Their foreman, on the ...原创 2020-03-07 22:57:34 · 276 阅读 · 0 评论 -
UVA1585 LA3354 Score【水题】
There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problem and an ‘X’ means a wrong answer. The score of each problem of this test is calculated by itself and i...原创 2020-03-06 13:39:42 · 608 阅读 · 1 评论 -
UVA11984 A Change in Thermal Unit【水题】
Measuring temperature and temperature differences are common task in many research and applications. Unfortunately, there exists more than one unit of measuring temperatures. This introduces a lot of ...原创 2020-03-05 11:32:01 · 296 阅读 · 0 评论 -
HDU2101 A + B Problem Too【水题】
A + B Problem TooTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 18051 Accepted Submission(s): 13409Problem DescriptionThis probl原创 2017-09-03 00:53:26 · 1292 阅读 · 0 评论 -
UVAlive3708 UVA1388 POJ3154 Graveyard【水题】
GraveyardTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 1715 Accepted: 865 Special JudgeDescriptionProgramming contests became so popular in the原创 2017-08-02 00:47:44 · 1202 阅读 · 0 评论 -
UVALive6336 HDU4450 Draw Something【水题】
Draw SomethingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3698 Accepted Submission(s): 3089Problem DescriptionWangpeng is goo原创 2017-08-19 04:59:33 · 967 阅读 · 0 评论 -
UVALive5402 UVA579 Clock Hands【水题】
The medieval interest in mechanical contrivances is well illustrated by the development of the mechanicalclock, the oldest of which is driven by weights and controlled by a verge, an oscillating arm原创 2017-07-28 01:39:30 · 872 阅读 · 0 评论 -
UVA11799 Horror Dash【最值】
It is that time of the year again! Colorful balloons and brightly coloredbanners spread out over your entire neighborhood for just this one occasion.It is the annual clown’s festival at your local sch...原创 2017-07-28 01:20:43 · 972 阅读 · 0 评论 -
HDU3188 Just A Triangle【水题】
Just A TriangleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2862 Accepted Submission(s): 2028Problem Description This is an easy原创 2017-07-15 00:25:34 · 999 阅读 · 0 评论 -
HDU1977 Consecutive sum II【数学计算+水题】
Consecutive sum IITime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3061 Accepted Submission(s): 1533Problem DescriptionConsecuti原创 2017-07-02 20:39:59 · 853 阅读 · 0 评论 -
HDU1587 Flowers【水题】
FlowersTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4189 Accepted Submission(s): 2753Problem DescriptionAs you know, Gardon trid h原创 2017-07-01 23:33:30 · 976 阅读 · 0 评论 -
UVALive4167 HDU2700 Parity【水题】
ParityTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4842 Accepted Submission(s): 3635Problem DescriptionA bit string has odd parity原创 2017-07-01 00:34:39 · 896 阅读 · 0 评论 -
POJ1844 Sum【水题+数学题】
SumTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 10839 Accepted: 7107DescriptionConsider the natural numbers from 1 to N. By associating to each numbe原创 2017-06-11 19:09:52 · 1094 阅读 · 0 评论 -
UVA11854 HDU4156 Egypt【水题】
Max Sum IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2003 Accepted Submission(s): 618Problem DescriptionGiven a sequence a[1原创 2017-06-05 09:53:12 · 693 阅读 · 0 评论 -
NUC1178 Kickdown【水题】
Kickdown时间限制: 1000ms 内存限制: 65536KB问题描述A research laboratory of a world-leading automobile company has received an order to create a special transmission mechanism, which allows for incredibly原创 2017-05-14 21:54:24 · 601 阅读 · 0 评论 -
NUC1003 Hangover【水题】
Hangover时间限制: 1000ms 内存限制: 65536KB问题描述 How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We are assum原创 2017-05-14 15:42:34 · 761 阅读 · 0 评论 -
HDU2708 Vertical Histogram【水题】
Vertical HistogramTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5326 Accepted Submission(s): 1305Problem DescriptionWrite a pro原创 2017-04-17 23:10:41 · 1092 阅读 · 0 评论 -
UVALive5661 UVA668 ZOJ2037 Parliament【水题】
ParliamentTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 19365 Accepted: 8192DescriptionNew convocation of The Fool Land's Parliament consists of N del原创 2017-04-04 10:15:20 · 784 阅读 · 0 评论 -
POJ1032 UVA668 Parliament【水题】
ParliamentTime Limit: 1000MS Memory Limit: 10000K Total Submissions: 19365 Accepted: 8192 DescriptionNew convocation of The Fool Land's Parliament consists of N delegates...原创 2017-04-04 10:00:51 · 911 阅读 · 0 评论 -
UVA10079 Pizza Cutting【水题】
When someone calls Ivan lazy, he claims that it is his intelligence that helps him to be so. If hisintelligence allows him to do something at less physical effort, why should he exert more? He alsoc原创 2017-03-28 16:53:18 · 952 阅读 · 0 评论 -
POJ3617 Best Cow Line【水题】
Best Cow LineTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 27635 Accepted: 7438DescriptionFJ is about to take his N (1 ≤ N ≤ 2,000) cows to the an原创 2017-02-17 23:04:57 · 1590 阅读 · 0 评论 -
POJ2390 Bank Interest【水题】
Bank InterestTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 15929 Accepted: 9556DescriptionFarmer John made a profit last year! He would like to invest原创 2017-02-17 19:51:56 · 1110 阅读 · 0 评论 -
UVA10071 Back to High School Physics【水题】
A particle has initial velocity and acceleration. If its velocity after certain time is v then what will itsdisplacement be in twice of that time?Input The input will contain two integers in each原创 2016-08-15 22:40:21 · 1654 阅读 · 0 评论 -
UVA1587 UVALive3214 POJ2160 Box【水题】
BoxTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4152 Accepted: 1500DescriptionIvan works at a factory that produces heavy machinery. He has a simple原创 2016-08-01 20:56:25 · 1220 阅读 · 3 评论 -
HDU1001 Sum Problem【水题】
Sum Problem Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 506192 Accepted Submission(s): 128411 Problem DescriptionHey, wel...原创 2017-11-12 09:59:02 · 991 阅读 · 0 评论 -
HDU1161 Eddy's mistakes【水题】
Eddy's mistakesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12337 Accepted Submission(s): 6925Problem DescriptionEddy usually原创 2016-05-27 15:58:17 · 1389 阅读 · 0 评论