摘要: 2801:填词查看提交统计提问时间限制:1000ms内存限制:65536kB描述Alex喜欢填词游戏。填词是游戏是一个非常简单的游戏。填词游戏包括一个N * M大小的矩形方格盘和P个单词。玩家需要把每个方格中填上一个字母使得每个单词都能在方格盘上找到。每个单词都能找到要满足下面的条件:每个方格都不能同时属于超过一个的单词。一个长为k的单词一定要占据k个方格。单词在方格盘中出现的方向只能是竖直的或者水平的。你的任务是首先在方格盘上找到所有的单词,当然在棋盘上可能有些方格没有被单词占据。然后把这些没有用的方格找出来,把这些方格上的字母按照字典序组成一个“神秘单词”。如果你还不了解规则,我们可以具一 阅读全文
posted @ 2011-08-16 07:01 何解一直犯相同错误? 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1111:Image Perimeters查看提交统计提问时间限制:1000ms内存限制:65536kB描述Technicians in a pathology lab analyze digitized images of slides. Objects on a slide are selected for analysis by a mouse click on the object. The perimeter of the boundary of an object is one useful measure. Your task is to determine this perim 阅读全文
posted @ 2011-08-16 07:00 何解一直犯相同错误? 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 2972:确定进制查看提交统计提问时间限制:1000ms内存限制:65536kB描述6*9 = 42 对于十进制来说是错误的,但是对于13进制来说是正确的。即, 6(13) * 9(13) = 42(13), 而 42(13) = 4 * 131 + 2 * 130 = 54(10)。你的任务是写一段程序读入三个整数p、q和 r,然后确定一个进制 B(2<=B<=16) [注意隐性条件,就是B要小于给定的数的各个位数]使得 p * q = r.如果 B有很多选择, 输出最小的一个。例如: p = 11, q = 11, r = 121. 则有 11(3) * 11(3) = 121 阅读全文
posted @ 2011-08-16 07:00 何解一直犯相同错误? 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1050:To the Max查看提交统计提问时间限制:5000ms内存限制:65536kB描述Given 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 all the elements in that rectangle. In this problem 阅读全文
posted @ 2011-08-16 06:59 何解一直犯相同错误? 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1018: Communication System查看提交统计提问时间限制:1000ms内存限制:65536kB描述We have received an order from Pizoor Communications Inc. for a special communication system.The system consists of several devices. For each device, we are free to choose from several manufacturers. Same devices from two manufacturersdiffer 阅读全文
posted @ 2011-08-16 06:59 何解一直犯相同错误? 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 1664:放苹果查看提交统计提问时间限制:1000ms内存限制:65536kB描述把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。输入第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。输出对输入的每组数据M和N,用一行输出相应的K。样例输入17 3样例输出8查看提交统计提问//关键点是想象出从低到高的柱状型排列,并分层考虑;注意:允许有的瓶子空着不放#include<iostream>using names 阅读全文
posted @ 2011-08-16 06:58 何解一直犯相同错误? 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1163:The Triangle查看提交统计提问时间限制:1000ms内存限制:65536kB描述738810274445265(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route thatstarts at the top and ends somewhere on the base. Each step can go either diagonally down to the left or diago 阅读全文
posted @ 2011-08-16 06:58 何解一直犯相同错误? 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 2739:计算对数查看提交统计提问时间限制:1000ms内存限制:65536kB描述给定两个正整数a和b。可以知道一定存在整数x,使得x <= logab < x + 1输出x输入第1行是测试数据的组数n,每组测试数据占2行,分别是a和b。每组测试数据之间有一个空行,每行数据不超过100个字符输出n行,每组测试数据有一行输出,也就是对应的x。输入数据保证x不大于20样例输入3100001000000000001100009999999999999999999999999999999999999999999999999999999999991样例输出320查看提交统计提问#inclu 阅读全文
posted @ 2011-08-16 06:57 何解一直犯相同错误? 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 2159:Ancient Cipher查看提交统计提问时间限制:1000ms内存限制:65536kB描述Ancient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in encrypted form to prevent eavesdropping(窃听、窃取). The most popular 阅读全文
posted @ 2011-08-16 06:57 何解一直犯相同错误? 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1328:Radar Installation查看提交统计提问时间限制:1000ms内存限制:65536kB描述Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locating on the coasting,can only cover d distance, so an is 阅读全文
posted @ 2011-08-16 06:56 何解一直犯相同错误? 阅读(246) 评论(0) 推荐(0) 编辑