上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: 题目描述 这里有n列火车将要进站再出站…… 但是,每列火车只有1节 那就是车头…… 描述 有n列火车按1到n的顺序从东方左转进站,这个车站是南北方向的,它虽然无限长,只可惜是一个死胡同,而且站台只有一条股道,火车只能倒着从西方出去,而且每列火车必须进站,先进后出。 (某生:不就是个栈吗?每次可以让右 阅读全文
posted @ 2018-07-11 22:10 house_cat 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Fennec and Snuke are playing a board game. On the board, there are N cells numbered 1 through N, and N−1 roads, each connecting two cells. Cell a 阅读全文
posted @ 2018-07-10 22:58 house_cat 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 题目描述 你玩过“拉灯”游戏吗?25盏灯排成一个5x5的方形。每一个灯都有一个开关,游戏者可以改变它的状态。每一步,游戏者可以改变某一个灯的状态。游戏者改变一个灯的状态会产生连锁反应:和这个灯上下左右相邻的灯也要相应地改变其状态。 我们用数字“1”表示一盏开着的灯,用数字“0”表示关着的灯。下面这种 阅读全文
posted @ 2018-07-07 00:19 house_cat 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给定一张 n(n≤20) 个点的带权无向图,点从 0~n-1 标号,求起点 0 到终点 n-1 的最短Hamilton路径。 Hamilton路径的定义是从 0 到 n-1 不重不漏地经过每个点恰好一次。 输入 第一行一个整数n。 接下来n行每行n个整数,其中第i行第j个整数表示点i到j的 阅读全文
posted @ 2018-07-06 12:25 house_cat 阅读(296) 评论(0) 推荐(1) 编辑
摘要: 题目描述 There are N towns on a plane. The i-th town is located at the coordinates (xi,yi). There may be more than one town at the same coordinates. You c 阅读全文
posted @ 2018-07-06 00:11 house_cat 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 题目描述 JSZKC is going to spend his vacation! His vacation has N days. Each day, he can choose a T-shirt to wear. Obviously, he doesn’t want to wear a si 阅读全文
posted @ 2018-06-07 12:56 house_cat 阅读(284) 评论(0) 推荐(1) 编辑
摘要: 题目描述 Let’s consider some math problems. JSZKC has a set A={1,2,…,N}. He defines a subset of A as ‘Meo set’ if there doesn’t exist two integers in this 阅读全文
posted @ 2018-06-05 19:58 house_cat 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 题目描述 There are N cities. There are also K roads and L railways, extending between the cities. The i-th road bidirectionally connects the pi-th and qi- 阅读全文
posted @ 2018-05-27 11:51 house_cat 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Alice and Bob are playing a stone game. There are n piles of stones. In each turn, a player can remove some stones from a pile (the number must b 阅读全文
posted @ 2018-05-15 15:33 house_cat 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 第一次参加省赛,算是真正感受到比赛的残酷。拿到好成绩,需要平时大量的积累,甚至也需要一点运气,然后我还做的不够,但我觉得我可以做得更好。 我之前是没有任何基础,大一才刚刚从知码开门入门。然后刚开始一直都没什么自信,感觉跟大佬差太多,他们都是基础好的。后来加入acm集训也是舍友怂恿的,虽然最后坚持下来 阅读全文
posted @ 2018-05-07 18:43 house_cat 阅读(438) 评论(1) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页