自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 收藏
  • 关注

原创 UVA - 465 Overflow

OverflowTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionWrite a program that reads an expression consisting of two no

2016-04-25 09:16:05 334

原创 UVA - 10106 Product(大数模板)

The problem is to multiply two integers X, Y . (0 ≤ X, Y InputThe input will consist of a set of pairs of lines. Each line in pair contains one multiplyer.OutputFor each input pair of lines th

2016-04-24 23:34:42 367

原创 UVA - 424 Integer Inquiry

Integer InquiryTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionOne of the first users of BIT's new supercomputer

2016-04-24 23:07:03 263

原创 UVA - 10115 Automatic Editing(体现c++STL处理字符串的能力)

Text-processing tools like awk and sed allow you to automatically perform a sequence of editing operationsbased on a script. For this problem we consider the specific case in which we want to perfor

2016-04-24 21:58:42 273

原创 UVA - 644 Immediate Decodability

An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is theprefix of a code for another symbol. We will assume for this problem that all codes are in binary,

2016-04-24 20:32:04 294

原创 UVA - 10815 Andy's First Dictionary

Andy, 8, has a dream - he wants to produce hisvery own dictionary. This is not an easy task forhim, as the number of words that he knows is,well, not quite enough. Instead of thinking up allth

2016-04-23 20:23:45 193

原创 UVA - 10878 Decode the tape

Decode the tapeTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescription "Machines take me by surprise with great freq

2016-04-23 19:19:13 260

原创 UVA - 409

Excuses, Excuses!Time Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionJudge Ito is having a problem with people subpoe

2016-04-23 18:50:09 216

原创 UVA - 537 Artificial Intelligence?

Physics teachers in high school often think that problems given as text are more demanding than purecomputations. After all, the pupils have to read and understand the problem first!So they don’t

2016-04-23 16:30:30 243

原创 UVA - 10361 Automatic Poetry

“Oh God”, Lara Croft exclaims, “it’s one of these dumb riddles again!”In Tomb Raider XIV, Lara is, as ever, gunning her way through ancient Egyptian pyramids, prehistoriccaves and medival hallways

2016-04-23 15:50:37 246

原创 UVA - 10010 Where's Waldorf?

Given a m by n grid of letters, (1 ≤ m, n ≤ 50), and a list of words, find the location in the grid atwhich the word can be found.A word matches a straight, uninterrupted line of letters in the gr

2016-04-23 14:16:55 284

原创 UVA - 401 Palindromes

PalindromesTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionA regular palindrome is a string of numbers or letters tha

2016-04-23 13:24:57 277

原创 ZOJ - 1295 Reverse Text

Reverse TextTime Limit: 2000MS Memory Limit: 65536KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionIn most languages, text is written from left to right. Ho

2016-04-23 13:05:05 258

原创 ZOJ - 1048 Financial Management

ZOJ - 1048Financial ManagementTime Limit: 2000MS Memory Limit: 65536KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionLarry graduated this year and fin

2016-04-23 12:58:30 229

原创 UVA - 457 Linear Cellular Automata

Linear Cellular AutomataTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescription Linear Cellular Automata A

2016-04-23 12:50:54 311

原创 UVA - 694 The Collatz Sequence

An algorithm given by Lothar Collatz produces sequences of integers, and is described as follows:Step 1: Choose an arbitrary positive integer A as the first item in the sequence.Step 2: If A = 1 t

2016-04-23 12:10:22 246

原创 UVA - 489 Hangman Judge

Hangman JudgeTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionIn ``Hangman Judge,'' you are to write a program tha

2016-04-23 11:58:54 182

原创 UVA - 488 Triangle Wave

Triangle WaveTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescription Triangle Wave In this problem y

2016-04-23 10:15:56 391

原创 UVA-445-Marvelous Mazes

Marvelous MazesTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionYour mission, if you decide to accept it, is to cr

2016-04-23 10:02:26 301

原创 UVA - 490 Rotating Sentences

Rotating SentencesTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionIn ``Rotating Sentences,'' you are asked to rot

2016-04-23 09:50:42 210

原创 UVA - 414 Machined Surfaces

Machined SurfacesTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionAn imaging device furnishes digital images of tw

2016-04-22 23:34:45 487

原创 UVA - 494 Kindergarten Counting Game

Kindergarten Counting GameTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionEverybody sit down in a circle. Ok. Lis

2016-04-22 23:12:18 347

原创 uva 458 The Decoder

UVA - 458The DecoderTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescription 文本加密的方法很很多,比如MD5算法(Message Digest Algorithm 

2016-04-22 23:06:36 528

原创 uva10300 Ecological Premium

Ecological PremiumInput: standard inputOutput: standard outputTime Limit: 1 secondMemory Limit: 32 MBGerman farmers are given a premium depending on the conditions at their farmyar

2016-04-22 22:57:11 341

原创 UVa 10071 Back to High School Physics

Back to High School PhysicsInput: standard inputOutput: standard outputA particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its displacemen

2016-04-22 22:47:06 370

原创 UVA - 10055 Hashmat the Brave Warrior

Hashmat is a brave warrior who with his group of young soldiers moves from one place to another tofight against his opponents. Before Fighting he just calculates one thing, the difference between hi

2016-04-22 22:38:05 535

原创 华为oj 取近视值

写出一个程序,接受一个浮点数值,输出该数值的近似整数值。如果小数点后数值大于等于5,向上取整;小于5,则向下取整。知识点 函数运行时间限制 10M内存限制 128输入 输入一个浮点数值输出 输出该数值的近似整数值样例输入 5.5样例输出 6问题分析:水题。整数好理解,就是我们常用的四舍五入,用输入的数+0.5然后取整输出就好。关键是负数,

2016-04-21 23:34:14 823

原创 华为oj 坐标移动

开发一个坐标计算工具, A表示向左移动,D表示向右移动,W表示向上移动,S表示向下移动。从(0,0)点开始移动,从输入字符串里面读取一些坐标,并将最终输入结果输出到输出文件里面。 输入: 合法坐标为A(或者D或者W或者S) + 数字(两位以内) 坐标之间以;分隔。 非法坐标点需要进行丢弃。如AA10;  A1A;  $%$;  YAD; 等。 下面是一个简单

2016-04-21 22:43:13 887

原创 华为oj 购物单

王强今天很开心,公司发给N元的年终奖。王强决定把年终奖用于购物,他把想买的物品分为两类:主件与附件,附件是从属于某个主件的,下表就是一些主件与附件的例子:主件附件电脑打印机,扫描仪书柜图书书桌台灯,文具工作椅无如果要买归类为附件的物品,必须先买该附件所属的主件。每个主件可以有 0 个、 1 个或 2 个附件。附件不再有从属于自己的附件。王强想买的东西很多,为了不超出预算,他把每件物品规定了一个重要

2016-04-21 21:26:30 2706 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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