自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

_nplus

我不会敲线段树,不会搞DP。

  • 博客(44)
  • 资源 (1)
  • 收藏
  • 关注

原创 Codeforce Good Bye 2013

A. New Year Candlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasily the Programmer loves romance, so

2013-12-31 14:12:27 777

原创 Hangman Judge

Description Hangman Judge In ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well a

2013-12-31 13:08:19 709

原创 The Collatz Sequence

Description  The Collatz Sequence An algorithm given by Lothar Collatz produces sequences of integers, and is described as follows:Step 1:Choose an arbitrary positive int

2013-12-31 13:07:49 893

原创 Linear Cellular Automata

Description Linear Cellular Automata A biologist is experimenting with DNA modification of bacterial colonies being grown in a linear array of culture dishes. By changing t

2013-12-31 13:07:32 718

原创 Triangle Wave

Description Triangle Wave In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.Input and OutputThe input

2013-12-31 13:07:12 806

原创 Missing Pages

题目描述Long ago, there were periodicals called newspapers, and these newspapers were printed on paper, and people used to read them, and perhaps even share them. One unfortunate thing about thi

2013-12-31 13:06:23 858

原创 Triangle Wave

Description Triangle Wave In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.Input and OutputThe inpu

2013-12-30 18:37:41 684

原创 Marvelous Mazes

Description Marvelous Mazes Your mission, if you decide to accept it, is to create a maze drawing program. A maze will consist of the alphabetic characters A-Z, *(asterisk)

2013-12-30 15:14:00 554

原创 Rotating Sentences

Description Rotating Sentences In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sente

2013-12-30 15:12:16 565

原创 Machined Surfaces

Description Machined Surfaces An imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roughnes

2013-12-30 15:10:06 542

原创 Kindergarten Counting Game

Description Kindergarten Counting Game Everybody sit down in a circle. Ok. Listen to me carefully.``Woooooo, you scwewy wabbit!''Now, could someone tell me how many wor

2013-12-30 15:05:39 942

原创 The Decoder

Description The Decoder Write a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a simple co

2013-12-30 15:03:45 509

原创 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 farmyard. Imagine

2013-12-30 15:02:05 540

原创 Back to High School Physics

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

2013-12-30 15:00:21 514

原创 Hashmat the Brave Warrior

Hashmat the brave warriorInput: standard inputOutput: standard output Hashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight against his o

2013-12-30 14:59:33 692

原创 UVa644_Immediate Decodability(小白书字符串专题)

Description  Immediate Decodability An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol

2013-12-30 14:48:55 690

原创 UVa10878_Decode the tape(小白书字符串专题)

DescriptionProblem ADecode the tapeTime Limit: 1 second"Machines take me by surprise with great frequency."Alan TuringYour boss has just unearthed a roll of old c

2013-12-30 14:47:02 694

原创 Artificial Intelligence?

Description  Artificial Intelligence? Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupi

2013-12-30 14:45:11 933

原创 UVa10361_Automatic Poetry(小白书字符串专题)

Automatic PoetryInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MB “Oh God”, Lara Croft exclaims, “it’s one of these dumb riddles again!” In Tomb

2013-12-30 14:43:32 717

原创 UVa10010_Where's Waldorf?(小白书字符串专题)

Description  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 str

2013-12-30 14:40:36 774

原创 UVa401_Palindromes(小白书字符串专题)

Description  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

2013-12-30 14:38:06 939

原创 Integer Inquiry(大数加法)

Description Integer Inquiry One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explo

2013-12-30 14:35:14 1066

原创 Box of Bricks

Description  Box of Bricks Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a

2013-12-30 14:25:51 619

原创 The ? 1 ? 2 ? ... ? n = k problem

Description The ? 1 ? 2 ? ... ? n = k problem The problemGiven the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k

2013-12-30 14:23:23 653

原创 Secret Research

Description  Secret Research At a certain laboratory results of secret research are thoroughly encrypted. A result of a single experiment is stored as an information of its

2013-12-30 14:21:36 590

原创 Cube painting

Description Cube painting We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these c

2013-12-30 14:19:16 1029

原创 Ant on a Chessboard

Problem A.Ant on a Chessboard  Background  One day, an ant called Alice came to an M*M chessboard. She wanted to go around all the grids. So she began to walk along the chessboard acco

2013-12-30 14:17:25 598

原创 Power of Cryptography

Description Power of Cryptography BackgroundCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers modulo func

2013-12-30 14:12:10 1082

原创 Simple calculations

Simple calculations The ProblemThere is a sequence of n+2 elements a0, a1,…, an+1 (n i 1000). It is known that ai = (ai–1 + ai+1)/2 – ci   for each i=1, 2, ..., n. You are given a0, an

2013-12-30 14:00:33 437

原创 Big Chocolate

Big ChocolateMohammad has recently visited Switzerland . As he loves his friends very much, he decided to buy some chocolate for them, but as this fine chocolate is very expensive(You know Moham

2013-12-30 13:41:18 466

原创 Vasya and the Bus

DescriptionOne day Vasya heard a story: "In the city of High Bertown a bus number 62 left from the bus station. It had n grown-ups and m kids..."The latter events happen to be of no importance t

2013-12-30 13:35:25 617

原创 Steps

Description  Steps One steps through integer points of the straight line. The length of a step must be nonnegative and can be by one bigger than, equal to, or by one smal

2013-12-30 13:32:09 796

原创 Quotient Polynomial

DescriptionProblem BQuotient PolynomialTime Limit2 SecondsA polynomial of degree n can be expressed asIf k is any integer then we can write:

2013-12-30 13:30:09 11769

原创 The Snail

Description  The Snail A snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 fo

2013-12-30 13:27:07 6770

原创 (2/3/4)-D Sqr/Rects/Cubes/Boxes?

(2/3/4)-D Sqr/Rects/Cubes/Boxes?Input: standard inputOutput: standard outputTime Limit: 2 seconds You can see a (4x4) grid below. Can you tell me how many squares and rectangles are hidden t

2013-12-30 02:54:50 6531

原创 Codeforces Round #221 (Div. 2)

A. Levertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a description of a lever as

2013-12-30 02:49:51 4237

原创 小鑫の日常系列故事(七)——小纸条

题目描述小鑫在高中的时候喜欢上了一个十分漂亮的女孩。那个女孩也很喜欢他,就答应成为他的女朋友。但是大家都知道高中的生活是忙碌的,除了上课就是上课,有时候可能连课间时间都被老师占用。于是小鑫想出了在上课给女朋友传纸条的方法来表达自己的爱慕。又但是她与小鑫之间的距离太远,中间必须通过同学来传递纸条。可他们并不想让同学们知道写的什么就想到加密纸条这种方法。方法如下:他们每天都会约定加

2013-12-30 02:43:11 4959

原创 Parallelepiped

DescriptionYou've got a rectangular parallelepiped with integer edge lengths. You know the areas of its three faces that have a common vertex. Your task is to find the sum of lengths of all 12 edg

2013-12-30 02:36:50 5596

原创 干了这桶冰红茶!

BNUCIST的HWQ大神特别钟爱冰红茶这种神棍的饮料,有一天打Dota暴虐他寝室的WL后,决定大喝一顿庆祝一下。他决定用一种神棍的方式来喝冰红茶,那就是每口只喝1升,或者2升,或者3升(PS:HWQ大神真的能喝这么多= =)。爱思考的HWQ突然想知道,对于一桶整数升的冰红茶,他可以有多少种方案喝光,但似乎他不能马上想出解决的办法,纠结的他不知道答案他就喝不下去了。聪明的你快帮帮他吧。

2013-12-30 02:32:43 13917

原创 Number theory

数学不仅是简单而且是美的。数学很有趣,但是数学中也有很多难题,比如哥德巴赫猜想、各种欧拉定理、拉格朗日中值定理、费马定理等。今天小若遇到了一道题目:给一个9进制数,求出这个数模8的余数。小若苦思冥想很久也没有想出结果,聪明的你快来帮助小若若吧!Input输入每行有一串数字(保证数字长度不超过107),有多组测试数据。以0结束输入。Output

2013-12-30 02:30:47 4154

空空如也

空空如也

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

TA关注的人

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