上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: Evolution Game 题目描述 In the fantasy world of ICPC there are magical beasts. As they grow, these beasts can change form, and every time they do they bec 阅读全文
posted @ 2019-05-03 19:52 llke 阅读(128) 评论(0) 推荐(0)
摘要: Cardboard Container Problem Description fidget spinners are so 2017; this years’ rage are fidget cubes. A fidget cube is a cube with unit side lengths 阅读全文
posted @ 2019-05-01 21:23 llke 阅读(245) 评论(0) 推荐(0)
摘要: Janitor Troubles Problem Description While working a night shift at the university as a janitor, you absent mindedly erase a blackboard covered with e 阅读全文
posted @ 2019-04-28 21:53 llke 阅读(324) 评论(0) 推荐(0)
摘要: Strings in the Pocket 题目链接 "http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=6012" 题意 给你两个字符串,问有多少种方法能使翻转a中一个的子串后能够和b相同 题解 分两种情况 1. a和b相同:用马 阅读全文
posted @ 2019-04-28 21:53 llke 阅读(125) 评论(0) 推荐(0)
摘要: IncDec序列 Description 给定一个长度为 n 的数列 a1,a2,…,an,每次可以选择一个区间 [l,r],使下标在这个区间内的数都加一或者都减一。 求至少需要多少次操作才能使数列中的所有数都一样,并求出在保证最少次数的前提下,最终得到的数列可能有多少种。 Input 输入格式 第 阅读全文
posted @ 2019-04-27 09:20 llke 阅读(310) 评论(0) 推荐(0)
摘要: 博客还在建设中.. 阅读全文
posted @ 2019-04-26 18:42 llke 阅读(142) 评论(0) 推荐(0)
摘要: Description The Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can affo 阅读全文
posted @ 2019-04-19 20:21 llke 阅读(134) 评论(0) 推荐(0)
摘要: Description In how many ways can you tile a 3xn rectangle with 2x1 dominoes? Here is a sample tiling of a 3x12 rectangle. Input Input consists of seve 阅读全文
posted @ 2019-04-19 16:54 llke 阅读(558) 评论(0) 推荐(0)
摘要: 描述 求把N*M的棋盘分割成若干个1*2的的长方形,有多少种方案。 例如当N=2,M=4时,共有5种方案。当N=2,M=3时,共有3种方案。 如下图所示: 输入格式 输入包含多组测试用例。 每组测试用例占一行,包含两个整数N和M。 当输入用例N=0,M=0时,表示输入终止,且该用例无需处理。 输出格 阅读全文
posted @ 2019-04-19 16:37 llke 阅读(172) 评论(0) 推荐(0)
摘要: 描述 给定一张 nn 个点的带权无向图,点从 0~n-1 标号,求起点 0 到终点 n-1 的最短Hamilton路径。 Hamilton路径的定义是从 0 到 n-1 不重不漏地经过每个点恰好一次。 输入格式 第一行输入整数nn。 接下来nn行每行nn个整数,其中第ii行第jj个整数表示点ii到j 阅读全文
posted @ 2019-04-19 14:51 llke 阅读(149) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页