07 2015 档案
摘要:原题: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...
阅读全文
摘要:原题: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...
阅读全文
摘要:原题: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...
阅读全文
摘要:原题:DescriptionLittle Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capita...
阅读全文
摘要:原题:Description某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二...
阅读全文
摘要:原题:DescriptionTwo bored soldiers are playing card war. Their card deck consists of exactlyncards, numbered from1ton,all values are different. They div...
阅读全文
摘要:原题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...
阅读全文
摘要:原题Description把十进制整数转换为十六进制,格式为0x开头,10~15由大写字母A~F表示。Input每行一个整数x,0#include#includeusing namespace std;char a[8];int main(){ int i = 7; long long ...
阅读全文
摘要:---恢复内容开始---11877 The Coco-Cola StoreOnce upon a time, there is a special coco-cola store. If you return three empty bottles to the shop,you’ll get a ...
阅读全文
摘要:原题:1111: 三家人Time Limit: 1 SecMemory Limit: 128 MBDescription有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请...
阅读全文
摘要:原题:Description There are many unsolvable problem in the world.It could be about one or about zero.But this time it is about bigger number. Given an i...
阅读全文
摘要:---恢复内容开始---DescriptionThe figure shown on the left is left-right symmetric as it is possible to fold the sheet of paper along a vertical line, drawn ...
阅读全文
摘要:原题贴上10391 Compound WordsYou are to find all the two-word compound words in a dictionary. A two-word compound word is aword in the dictionary that is t...
阅读全文
摘要:先上原题地址 :http://acm.hust.edu.cn/vjudge/contest/view.action?cid=82547#problem/D看过题目之后我的想法就是: 把输入的数据一个一个来看——得到一组数据,判断它的逆序出现了几次,如果出现了就把逆序出现的次数减一,如果没出现就把这...
阅读全文
摘要:这个题目。。。。想上题意10935 Throwing cards away IGiven is an ordered deck of n cards numbered 1 to n with card 1 at the top and card n at the bottom. The follow...
阅读全文
摘要:原题:ou are working in a team that writes Incredibly Customizable Programming Codewriter (ICPC) which is basically a text editor with bells and whistles...
阅读全文
摘要:原题贴上A Ducci sequence is a sequence ofn-tuples of integers. Given ann-tuple of integers(a1,a2,...,an), the nextn-tuple in the sequence is formed by tak...
阅读全文

浙公网安备 33010602011771号