- 博客(46)
- 问答 (4)
- 收藏
- 关注
原创 三个水杯
描述 给出三个水杯,大小不一,并且只有最大的水杯的水是装满的,其余两个为空杯子。三个水杯之间相互倒水,并且水杯没有标识,只能根据给出的水杯体积来计算。现在要求你写出一个程序,使其输出使初始状态到达目标状态的最少次数。 输入 第一行一个整数N(0#include<cstdio>#include<cstring>#include<iostream>#include<algorithm>#i
2015-06-29 09:40:15 398
原创 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 345
原创 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 1174
原创 非常可乐
Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正好装满一瓶) ,它们三个之间可以相互倒可乐 (都是没有刻度的,且 S==N
2015-06-26 22:58:36 388
原创 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 292
原创 迷宫问题
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 349
原创 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 937 1
原创 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 384
原创 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 433
原创 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 416
原创 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 279
原创 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 347
原创 Matrix
You have a string of decimal digits s. Let’s define bij = si·sj. Find in matrix b the number of such rectangles that the sum bij for all cells (i, j) that are the elements of the rectangle equals a in
2015-06-26 22:07:16 611
原创 Renting Bikes
DescriptionA group of n schoolboys decided to ride bikes. As nobody of them has a bike, the boys need to rent them.The renting site offered them m bikes. The renting price is different for diffe
2015-06-26 21:48:44 673
原创 免费馅饼
Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所以他只能在小径上接。由于gameboy平时老呆在房间里玩游戏,
2015-06-19 23:35:33 212
原创 搬寝室
Description搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为n是一个小于2000的整数,实在是太多了,于是xhd决定随便搬2*k件过去就行了.但还是会很累,因为2*k也不小是一个不大于n的整数.幸运的是xhd根据多年的搬东西的经验发现每搬
2015-06-19 23:31:52 591
原创 George and Job
The new ITone 6 has been released recently and George got really keen to buy it. Unfortunately, he didn't have enough money, so George was going to work as a programmer. Now he faced
2015-06-19 23:25:55 563
原创 最大连续子序列
Description给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 例如给定序列{ -2, 11, -4, 13, -5, -2 },其最大连续子序列为{ 11, -4, 13 },最大和 为20。 在今年的数据结构考卷中,要求编写程序得到最大和,现在增加
2015-06-17 21:45:45 282
原创 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 259
原创 New Year Permutation
User ainta has a permutation p1, p2, ..., pn. As the New Year is coming, he wants to make his permutation as pretty as possible.Permutation a1, a2, ..., an is prettier than permu
2015-06-16 23:34:58 434
原创 棋盘问题
Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个
2015-06-16 23:27:00 394
原创 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 268
原创 Fixing Typos
Many modern text editors automatically check the spelling of the user's text. Some editors even suggest how to correct typos.In this problem your task to implement a small functionality to cor
2015-06-15 09:49:18 390
原创 ZgukistringZ
Professor GukiZ doesn't accept string as they are. He likes to swap some letters in string to obtain a new one.GukiZ has strings a, b, and c. He wants to obtain string k by swapping some l
2015-06-13 22:18:36 483
原创 Number of Ways
You've got array a[1], a[2], ..., a[n], consisting of n integers. Count the number of ways to split all the elements of the array into three contiguous parts so that the sum of ele
2015-06-11 21:15:36 386
原创 Two Buttons
Vasya has found a strange device. On the front panel of a device there are: a red button, a blue button and a display showing some positive integer. After clicking the red button, device multi
2015-06-11 20:52:45 408
原创 Dreamoon and WiFi
Dreamoon is standing at the position 0 on a number line. Drazil is sending a list of commands through Wi-Fi to Dreamoon's smartphone and Dreamoon follows them.Each command is one of the foll
2015-06-11 20:45:41 556
原创 DZY Loves Chessboard
DZY loves chessboard, and he enjoys playing with it.He has a chessboard of n rows and m columns. Some cells of the chessboard are bad, others are good. For every good cell, DZY wants to pu
2015-06-11 20:43:09 392
原创 Flipping Game
Flipping Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub got bored, so he invented a game t
2015-06-08 23:01:35 481
原创 Ice Sculptures
Ice Sculpturestime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Berland University is preparing to
2015-06-08 22:55:02 450
原创 Shortest path of the king
Shortest path of the kingtime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe king is left alone on the
2015-06-08 22:45:09 402
原创 Face Detection
Face Detectiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe developers of Looksery have to writ
2015-06-07 10:04:48 475
原创 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 315
原创 Milking Time
Milking TimeTime Limit:1000MS MemoryLimit:65536KB 64bitIO Format:%I64d &%I64uSubmit Status Practice POJ3616Appoint description: SystemCrawler (2015-04-30)DescriptionBess
2015-06-07 09:52:39 493
原创 Stall Reservations
Stall ReservationsTime Limit:1000MS MemoryLimit:65536KB 64bitIO Format:%I64d &%I64uSubmit Status Practice POJ3190Appoint description: SystemCrawler (2015-04-27)Description
2015-06-07 09:52:36 366
原创 Statistics of Recompre…
Statistics of Recompressing VideosTimeLimit:3000MS MemoryLimit:262144KB 64bitIO Format:%I64d & %I64uSubmit Status Practice CodeForces523DDescriptionA social network for dogs call
2015-06-07 09:52:33 342
原创 Packets
PacketsTime Limit:1000MS MemoryLimit:10000KB 64bitIO Format:%I64d &%I64uSubmit Status Practice POJ1017Appoint description: SystemCrawler (2015-04-23)DescriptionA factory p
2015-06-07 09:52:31 380
原创 ACdream的高速公路
ACdream的高速公路Time Limit: 2000/1000MS(Java/Others) MemoryLimit: 128000/64000KB(Java/Others) Special JudgeSubmit StatusProblem DescriptionACdream王国有一条贯穿整个王国的高速公路,一天,你要驾驶着一辆油箱容量为P的车从高速
2015-06-07 09:52:28 575
原创 Protecting the Flowers
H - Protectingthe FlowersTime Limit:2000MS MemoryLimit:65536KB 64bitIO Format:%I64d &%I64uSubmit Status Practice POJ3262Appoint description: SystemCrawler (2015-04-27)Descr
2015-06-07 09:52:25 421
原创 Robbers
RobbersTime Limit: 2000/1000MS(Java/Others) MemoryLimit: 128000/64000KB(Java/Others) Special JudgeSubmit StatusProblem Description N robbershave robbed the bank. As the resul
2015-06-07 09:52:22 489
空空如也
opencv识别特殊的指针式仪器的指针
2016-03-03
使用opencv对老式水表识别
2016-02-24
MFC中list control中添加进度条
2015-08-29
c++用socket连接,如何把服务器的本地文件夹目录传给客户端
2015-08-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人