
搜索
文章平均质量分 71
Techay
我是为了c币才写的简介
展开
-
棋盘问题
Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个原创 2015-06-16 23:27:00 · 419 阅读 · 0 评论 -
Foul Play(决策+递归)
A European soccer tournament has n participating teams. In the first round, n/2 matches are played such that each team plays against one other team. After every round, only the winning teams advance原创 2015-10-22 00:02:56 · 562 阅读 · 0 评论 -
Fliptile
Description Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M × N grid (1 ≤ M ≤ 15原创 2015-06-29 09:36:22 · 358 阅读 · 0 评论 -
迷宫问题
Description 定义一个二维数组: int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1, 1, 0,0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。 Input 一个5 × 5的二维数组,表示一原创 2015-06-26 22:54:26 · 368 阅读 · 0 评论 -
三个水杯
描述 给出三个水杯,大小不一,并且只有最大的水杯的水是装满的,其余两个为空杯子。三个水杯之间相互倒水,并且水杯没有标识,只能根据给出的水杯体积来计算。现在要求你写出一个程序,使其输出使初始状态到达目标状态的最少次数。 输入 第一行一个整数N(0#include<cstdio>#include<cstring>#include<iostream>#include<algorithm>#i原创 2015-06-29 09:40:15 · 428 阅读 · 0 评论 -
Find a way
Description Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a good friend Merceki. Yifenfei’s home原创 2015-06-26 23:09:15 · 1198 阅读 · 0 评论 -
非常可乐
Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正好装满一瓶) ,它们三个之间可以相互倒可乐 (都是没有刻度的,且 S==N原创 2015-06-26 22:58:36 · 402 阅读 · 0 评论 -
Oil Deposits
Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid tha原创 2015-06-26 22:55:26 · 304 阅读 · 0 评论 -
Cheese
CheeseTime Limit:8000MS MemoryLimit:65536KB 64bitIO Format:%lld &%lluSubmit Status Practice Aizu0558Appoint description: SystemCrawler (2015-05-13)Description問題今年も JOI 町の原创 2015-06-07 09:57:46 · 338 阅读 · 0 评论 -
Fire!
11624 Fire! Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. Help Joe escape the maze. Given Joe’s loc原创 2015-06-26 22:48:13 · 971 阅读 · 1 评论 -
Pots
Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap; DROP(i) em原创 2015-06-26 22:36:49 · 461 阅读 · 0 评论 -
Shuffle'm Up
DescriptionA common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips, S1 and S2, each stack contain原创 2015-06-26 22:25:09 · 441 阅读 · 0 评论 -
Find The Multiple
Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 2原创 2015-06-26 22:14:55 · 361 阅读 · 0 评论 -
Fire Game
Description Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just empty and the原创 2015-06-26 22:41:17 · 399 阅读 · 0 评论 -
Prime Path
Description The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices. — It is a原创 2015-06-26 22:22:04 · 301 阅读 · 0 评论 -
Dungeon Master
DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one原创 2015-06-16 23:17:42 · 289 阅读 · 0 评论 -
Catch That Cow
DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow原创 2015-06-17 21:42:18 · 280 阅读 · 0 评论 -
Double Queue(SET水题)
The new founded Balkan Investment Group Bank (BIG-Bank) opened a new office in Bucharest, equipped with a modern computing environment provided by IBM Romania, and using modern information technologies原创 2016-03-05 23:20:55 · 552 阅读 · 0 评论