摘要:
DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular... 阅读全文
posted @ 2015-07-30 10:24
心向晴
阅读(296)
评论(0)
推荐(0)
摘要:
Description给你一个高为n ,宽为m列的网格,计算出这个网格中有多少个矩形,下图为高为2,宽为4的网格.Input第一行输入一个t, 表示有t组数据,然后每行输入n,m,分别表示网格的高和宽 ( n using namespace std;int main(){ int t,n,m,... 阅读全文
posted @ 2015-07-30 10:09
心向晴
阅读(289)
评论(0)
推荐(0)
摘要:
Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of the maximum positive product involving consecutive te... 阅读全文
posted @ 2015-07-30 10:05
心向晴
阅读(414)
评论(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 firs... 阅读全文
posted @ 2015-07-30 09:54
心向晴
阅读(10225)
评论(0)
推荐(0)
摘要:
//把一个x进制的数转成一个十进制的数#include #include using namespace std;char a[100];int main(){ int T,x; cin>>T>>x; while(T--) { cin>>a; int n=0; for(int i=0;i... 阅读全文
posted @ 2015-07-25 14:51
心向晴
阅读(140)
评论(0)
推荐(0)
摘要:
DescriptionA magic island Geraldion, where Gerald lives, has its own currency system. It uses banknotes of several values. But the problem is, the sys... 阅读全文
posted @ 2015-07-25 14:39
心向晴
阅读(393)
评论(0)
推荐(0)
摘要:
某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二报数、一至三报数直到剩下的人... 阅读全文
posted @ 2015-07-25 14:01
心向晴
阅读(509)
评论(0)
推荐(0)
摘要:
Two bored soldiers are playing card war. Their card deck consists of exactlyncards, numbered from1ton,all values are different. They divide cards betw... 阅读全文
posted @ 2015-07-25 13:33
心向晴
阅读(161)
评论(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 and... 阅读全文
posted @ 2015-07-23 10:18
心向晴
阅读(197)
评论(0)
推荐(0)
摘要:
10391 Compound WordsYou are to find all the two-word compound words in a dictionary. A two-word compound word is a word in the dictionary that is the ... 阅读全文
posted @ 2015-07-22 19:47
心向晴
阅读(323)
评论(0)
推荐(0)
浙公网安备 33010602011771号