上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页
摘要: Relative RelativesTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 3072Accepted: 1329DescriptionToday is Ted's 100th birthday. A few weeks ago, you were selected by the family to contact all of Ted's descendants and organize a surprise party. To make this task easier, you created an 阅读全文
posted @ 2011-12-11 08:56 w0w0 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Rank ListTime Limit: 10000MSMemory Limit: 65536KTotal Submissions: 7563Accepted: 2440DescriptionLi Ming is a good student. He always asks the teacher about his rank in his class after every exam, which makes the teacher very tired. So the teacher gives him the scores of all the student in his class 阅读全文
posted @ 2011-12-11 08:55 w0w0 阅读(168) 评论(0) 推荐(0) 编辑
摘要: To the MaxTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 29575Accepted: 15337DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the whole array. The sum of a rectangle is the sum of a 阅读全文
posted @ 2011-12-10 00:20 w0w0 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Number SequenceTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 25686Accepted: 6963DescriptionA single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...Sk. Each group Sk consists of a sequence of positive integer 阅读全文
posted @ 2011-12-09 22:42 w0w0 阅读(137) 评论(0) 推荐(0) 编辑
摘要: ArgusTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 7771Accepted: 3434DescriptionA data stream is a real-time, continuous, ordered sequence of items. Some examples include sensor data, Internet traffic, financial tickers, on-line auctions, and transaction logs such as Web usage logs and te 阅读全文
posted @ 2011-12-08 21:10 w0w0 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Robot MotionTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 7098Accepted: 3413DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions are N north (up the page) 阅读全文
posted @ 2011-12-08 18:52 w0w0 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Candy Sharing GameTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 3111Accepted: 2072DescriptionA number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blows a whistle, each student simultaneously 阅读全文
posted @ 2011-12-08 12:37 w0w0 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Basically SpeakingTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 3334Accepted: 1578DescriptionThe Really Neato Calculator Company, Inc. has recently hired your team to help design their Super Neato Model I calculator. As a computer scientist you suggested to the company that it would be ne 阅读全文
posted @ 2011-12-08 10:43 w0w0 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Litmus TestTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 950Accepted: 479DescriptionThe pH scale measures the concentration of protons (H+) in a solution and, therefore, its acidity or alkalinity. The pH value of a solution is a number between 0 and 14; it is less than 7 if the solution i 阅读全文
posted @ 2011-12-07 11:02 w0w0 阅读(186) 评论(0) 推荐(0) 编辑
摘要: BorderTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 3216Accepted: 1513DescriptionYou are to write a program that draws a border around a closed path into a bitmap, as displayed in the following figure: The path is closed and runs along the grid lines, i.e. between the squares of the grid. 阅读全文
posted @ 2011-12-05 19:02 w0w0 阅读(247) 评论(0) 推荐(0) 编辑
摘要: RailsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 16789Accepted: 6737DescriptionThere is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to establish 阅读全文
posted @ 2011-12-05 19:01 w0w0 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Diplomatic LicenseTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 2289 Accepted: 1105DescriptionIn an effort to minimize the expenses for foreign affairs the countries of the world have argued as follows. It is not enough that each country maintains diplomatic relations with at most one ot 阅读全文
posted @ 2011-11-24 12:57 w0w0 阅读(312) 评论(0) 推荐(0) 编辑
摘要: Programmer, Rank ThyselfTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 901 Accepted: 366DescriptionImplement a ranking program similar to the one used for this programming contest.InputThe input file contains one or more contests followed by a line containing only zero that signals the en 阅读全文
posted @ 2011-11-24 12:56 w0w0 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 字符串替换Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 6311Accepted: 2943Description编写一个C程序实现将字符串中的所有"you"替换成"we"Input输入包含多行数据 每行数据是一个字符串,长度不超过1000 数据以EOF结束Output对于输入的每一行,输出替换后的字符串Sample Inputyou are what you doSample Outputwe are what we do#include<stdio.h>#include& 阅读全文
posted @ 2011-11-23 11:22 w0w0 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 序列Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5036Accepted: 2217Description数列A满足An = An-1 + An-2 + An-3, n >= 3 编写程序,给定A0, A1 和 A2, 计算A99Input输入包含多行数据 每行数据包含3个整数A0, A1, A2 (0 <= A0, A1, A2 <= 32767) 数据以EOF结束Output对于输入的每一行输出A99的值Sample Input1 1 1Sample Output69087442470169316923 阅读全文
posted @ 2011-11-23 11:22 w0w0 阅读(163) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页