Ying

个人博客:http://smartsi.club/

[HDU][线段树]1754.I Hate It

思路:利用线段树实现,具体参考:[算法系列之二十三]线段树(Interval Tree)代码/*--------------------------------------------- * 日期:2015-03-24 * 作者:SJF0115 * 题目: 1754.I Hate It...

2015-03-24 18:21:31

阅读数:1500

评论数:0

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

Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的...

2015-03-24 15:51:40

阅读数:1312

评论数:0

[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 silhoue...

2015-02-25 16:31:18

阅读数:1343

评论数:0

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 area...

2014-05-19 19:14:20

阅读数:1596

评论数:0

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. Writ...

2014-05-14 23:32:27

阅读数:1464

评论数:0

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 ...

2014-05-12 22:32:16

阅读数:1312

评论数:0

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...

2014-05-02 22:16:41

阅读数:1503

评论数:0

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 fol...

2014-05-02 17:17:50

阅读数:1556

评论数:0

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 C...

2014-05-02 08:43:19

阅读数:1469

评论数:0

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 ...

2014-05-02 08:42:41

阅读数:1474

评论数:0

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, e...

2014-05-02 08:41:57

阅读数:1381

评论数:0

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 palin...

2014-05-02 08:41:09

阅读数:1474

评论数:0

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 fou...

2014-05-02 08:40:18

阅读数:1321

评论数:0

UVA之10361 - Automatic Poetry

Problem I Automatic Poetry Input: standard input Output: standard output Time Limit: 2 seconds Memory Limit: 32 MB   “Oh God...

2014-05-01 10:55:54

阅读数:1417

评论数:0

UVA之537 - Artificial Intelligence?

Artificial Intelligence?  Physics teachers in high school often think that problems given as text are more demanding than pure computati...

2014-05-01 10:54:26

阅读数:1257

评论数:0

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. I...

2014-05-01 10:53:04

阅读数:1319

评论数:0

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...

2014-05-01 10:51:54

阅读数:1249

评论数:0

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 li...

2014-05-01 10:47:27

阅读数:1548

评论数:0

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 go...

2014-04-17 22:28:53

阅读数:1352

评论数:0

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 Alp...

2014-04-10 23:11:58

阅读数:1257

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭