
搜索
Kirito_Acmer
这个作者很懒,什么都没留下…
展开
-
1569: Wet Tiles
DescriptionAlice owns a construction company in the town of Norainia, famous for its unusually dry weather. In fact, it only rains a few days per year there. Because of this phenomenon, many resid原创 2015-04-08 15:45:30 · 782 阅读 · 0 评论 -
poj2362 Square
DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square?InputThe first line of input contains N, the number of test cases. Each test case原创 2015-08-10 19:46:26 · 925 阅读 · 0 评论 -
Codeforces Beta Round #92 (Div. 2 Only) B. Permutations
You are given n k-digit integers. You have to rearrange the digits in the integers so that the difference between the largest and the smallest number was minimum. Digits should be rearranged by the原创 2015-08-13 09:05:36 · 1594 阅读 · 0 评论 -
poj1011 Sticks
DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sti原创 2015-08-14 20:45:21 · 771 阅读 · 1 评论 -
hdu5305 Friends
Problem DescriptionThere are n people and m pairs of friends. For every pair of friends, they can choose to become online friends (communicating using online applications) or offline friends (原创 2015-08-17 19:01:12 · 897 阅读 · 0 评论 -
hdu5433 Xiao Ming climbing
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 438 Accepted Submission(s): 108Problem DescriptionDue to the curse made by the原创 2015-09-13 19:20:25 · 915 阅读 · 0 评论 -
hdu4528 小明系列故事——捉迷藏
Time Limit: 500/200 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1228 Accepted Submission(s): 322Problem Description 小明的妈妈生了三个孩子,老大叫大明, 老二叫二明, 老三原创 2015-09-22 21:02:13 · 772 阅读 · 0 评论 -
Codeforces Round #327 (Div. 1) C. Three States
C. Three Statestime limit per test5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputThe famous global economic crisis is approa原创 2015-10-27 20:32:35 · 932 阅读 · 0 评论 -
uestc 1222 Sudoku
Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)Submit StatusYi Sima was one of the best counselors of Cao Cao. He likes to play a funny game himself. It原创 2015-10-28 18:29:35 · 1022 阅读 · 0 评论 -
uestc 1221 Ancient Go
Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)Submit StatusYu Zhou likes to play Go with Su Lu. From the historical research, we found that there are原创 2015-10-29 17:52:37 · 717 阅读 · 0 评论 -
codeforces622E Ants in Leaves (dfs)
DescriptionTree is a connected graph without cycles. A leaf of a tree is any vertex connected with exactly one other vertex.You are given a tree with n vertices and a root in the vertex 1. The原创 2016-02-17 22:02:00 · 774 阅读 · 0 评论 -
hdu5637 Transform (bfs+预处理)
Problem DescriptionA list of n integers are given. For an integer x you can do the following operations:+ let the binary representation of x be b31b30...b0¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯, you can flip o原创 2016-03-16 19:45:18 · 465 阅读 · 0 评论 -
LA3902 Network (树上dfs)
题目链接:点击打开链接题意:n台机器连成一个树状网络,其中叶节点是客户端,其他节点是服务器,目前有一台服务器s正在提供服务。让你在其他服务器上也安排同样的服务,使得每台客户端到最近服务器的距离不超过k,而且要使服务器尽量少,问最少要设置多少台服务器。思路:我们先把s看做根节点,做一遍dfs,把离s距离小于等于k的叶子节点标为访问过,表示这个叶子节点已经得到服务了,然后再把没有访问过的叶子节原创 2016-03-30 12:42:55 · 739 阅读 · 0 评论 -
poj3009 Curling 2.0
DescriptionOn Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on which a squa原创 2015-06-04 20:37:59 · 671 阅读 · 0 评论 -
poj2531 Network Saboteur
DescriptionA university network is composed of N computers. System administrators gathered information on the traffic between nodes, and carefully divided the network into two subnetworks in order原创 2015-05-06 12:55:48 · 770 阅读 · 0 评论 -
poj2676 Sudoku
DescriptionSudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown on the Figure. In some of the cells are written decimal digits from 1原创 2015-05-06 10:47:12 · 663 阅读 · 0 评论 -
实验十二 图的建立与遍历
Description按邻接矩阵的方法创建图,分别用深度优先和广度优先方法遍历图。Input输入的数据有多组对于每组测试数据第一行为图中点的个数n(0 接下来有m行,每行两个整数a,b(0 Output分别输出按照深度优先搜索与广度优先搜索方法遍历的结果,每个输出结果后面都有一空行。Sample Input3 05 30 10 41 3Sample原创 2015-04-08 11:02:49 · 2449 阅读 · 0 评论 -
poj3083 Children of the Candy Cor
DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-wielding psychopaths, hippies, and other terro原创 2015-05-02 14:02:15 · 707 阅读 · 0 评论 -
poj1321 棋盘问题
Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n原创 2015-05-02 21:33:48 · 1721 阅读 · 0 评论 -
poj1753 Flip Game
DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying原创 2015-04-30 17:44:42 · 605 阅读 · 0 评论 -
poj2965 The Pilots Brothers' refrigerator
DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There are 16 handles on the refrigerator door. Every handle can原创 2015-04-30 19:52:11 · 602 阅读 · 0 评论 -
poj2251 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 un原创 2015-05-03 22:52:04 · 549 阅读 · 0 评论 -
poj3278 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 is at a point K原创 2015-05-04 07:39:27 · 983 阅读 · 0 评论 -
poj3126 Prime Path
DescriptionThe 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 i原创 2015-05-04 15:58:05 · 710 阅读 · 0 评论 -
poj2488 A Knight's Journey
DescriptionBackground The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. Whenever a knight moves, it is原创 2015-05-01 22:34:47 · 498 阅读 · 0 评论 -
poj1426 Find The Multiple
DescriptionGiven 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 tha原创 2015-05-04 14:23:45 · 652 阅读 · 0 评论 -
poj3087 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-05-05 11:10:09 · 665 阅读 · 0 评论 -
poj3414 Pots
DescriptionYou 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)原创 2015-05-05 19:34:42 · 642 阅读 · 0 评论 -
hdu4778 Gems Fight!
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 327680/327680 K (Java/Others)Total Submission(s): 1912 Accepted Submission(s): 824Problem Description Alice and Bob are play原创 2015-11-09 21:40:23 · 735 阅读 · 0 评论