# [HDU][线段树]1166.敌兵布阵

Problem DescriptionC国的死对头A国这段时间正在进行军事演习，所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段，所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动，可能增加或减少若干人手,但这些都逃不过C国的监视。 中央...

# [POJ]3277.City Horizon

DescriptionFarmer John has taken his cows on a trip to the city! As the sun sets, the cows gaze at the city horizon and observe the beautiful silhouettes formed by the rectangular buildings.The entire...

# UVA之1330 - City Game

【题目】 Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in which there are streets, trees, factories and...

# UVA之1121 - Subsequence

【题目】 A sequence of N positive integers (10 N , each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the subse...

# UVA之1398 - Meteor

【题目】 The famous Korean internet company nhn has provided an internet-based photo service which allows The famous Korean internet company users to directly take a photo of an astronomical phenomenon...

# UVA之11462 - Age Sort

【题目】 B Age Sort Input: Standard Input Output: Standard Output   You are given the ages (in years) of all people of a country with at least 1 year of age. You kn...

# UVA之11549 - Calculator Conundrum

【题目】 Problem C CALCULATOR CONUNDRUM Alice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time waster. She enters a number k t...

# UVA之11292 - Dragon of Loowater

Problem C: The Dragon of Loowater Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem. The shores of Rellau Creek in central Loowater had always been a prime...

# UVA 之11729 - Commando War

There is a war and it doesn't look very promising for your country. Now it's time to act. You have a commando squad at your disposal and planning an ambush on an important enemy camp located nearby. Y...

# UVA 之11300 - Spreading the Wealth

Problem A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted all of their properties to co...

# UVA 之401 - Palindromes

A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from lef...

# UVA 之10010 - Where's Waldorf?

Where's Waldorf?  Given a m by n grid of letters, ( ), and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line o...

# UVA之10361 - Automatic Poetry

Problem I Automatic Poetry Input: standard input Output: standard output Time Limit: 2 seconds Memory Limit: 32 MB   “Oh God”, Lara Croft exclaims, “it’s one of these dumb rid...

# UVA之537 - Artificial Intelligence?

Artificial Intelligence?  Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and underst...

# UVA之409 - Excuses, Excuses!

Excuses, Excuses!  Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time requi...

# UVA之10878 - Decode the tape

【题目】 Your boss has just unearthed a roll of old computer tapes. The tapes have holes in them and might contain some sort of useful information. It falls to you to figure out what is written on them...

# UVA之11078 - Open Credit System

【题目】 Problem E Open Credit System Input: Standard Input Output: Standard Output In an open credit system, the students can choose any course they like, but there is a problem. Some of the stude...

# UVA之12124 - Assemble

【题目】 Problem A - Assemble Time limit: 2 seconds Recently your team noticed that the computer you use to practice for programming contests is not good enough anymore. Therefore, you decide to bu...

# UVA之Fill the Square

Problem A Fill the Square Input: Standard Input Output: Standard Output   In this problem, you have to draw a square using uppercase English Alphabets. To be more precise, you will be given a sq...

23条 共2页1 2 下一页 尾页
个人资料
• 访问：1240476次
• 积分：19944
• 等级：
• 排名：第437名
• 原创：621篇
• 转载：132篇
• 译文：50篇
• 评论：173条
精品文选
博客专栏
 ElasticSearch日记 文章：19篇 阅读：46380
 MyBatis日记 文章：8篇 阅读：11545
 Spring实战系列 文章：20篇 阅读：43761
 Maven实战 文章：10篇 阅读：18999
 Java开发之路 文章：36篇 阅读：56601
 华为机试练习题 文章：73篇 阅读：133251
 算法系列 文章：33篇 阅读：69119
 ACM-UVA 文章：22篇 阅读：27916
 LeetCode 文章：160篇 阅读：242384
 剑指Offer 文章：37篇 阅读：75530
文章分类
最新评论