上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 原题:Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of the maximum positive product involving consecutive... 阅读全文
posted @ 2015-08-02 19:02 Shawn_Ji 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 原题:DescriptionWrite a program that finds and displays all pairs of 5-digit numbers that between them use the digits0through9once each, such that the f... 阅读全文
posted @ 2015-08-02 18:55 Shawn_Ji 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 原题:DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 2 #incl... 阅读全文
posted @ 2015-07-26 18:44 Shawn_Ji 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 原题:DescriptionA robot has to patrol around a rectangular area which is in a form ofmxngrid (mrows andncolumns). The rows are labeled from 1 tom. The c... 阅读全文
posted @ 2015-07-26 18:43 Shawn_Ji 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 原题:DescriptionA friend of you is doing research on theTraveling Knight Problem (TKP)where you are to find the shortest closed tour of knight moves tha... 阅读全文
posted @ 2015-07-26 18:41 Shawn_Ji 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 原题:DescriptionLittle Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capita... 阅读全文
posted @ 2015-07-26 18:40 Shawn_Ji 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 原题:Description某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二... 阅读全文
posted @ 2015-07-26 18:39 Shawn_Ji 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 原题:DescriptionTwo bored soldiers are playing card war. Their card deck consists of exactlyncards, numbered from1ton,all values are different. They div... 阅读全文
posted @ 2015-07-26 18:37 Shawn_Ji 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 原题DescriptionYou are given a string consisting of parentheses()and[]. A string of this type is said to becorrect:(a)if it is the empty string(b)if A a... 阅读全文
posted @ 2015-07-26 18:35 Shawn_Ji 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 原题Description把十进制整数转换为十六进制,格式为0x开头,10~15由大写字母A~F表示。Input每行一个整数x,0#include#includeusing namespace std;char a[8];int main(){ int i = 7; long long ... 阅读全文
posted @ 2015-07-18 15:17 Shawn_Ji 阅读(221) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页