上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 39 下一页
摘要: #include #include const int N = 1000000 + 5;char s[N],t[N];int lens,lent;int next[N];void get_fail() { next[0] = -1; for (int i = 1,j = -1; i < ... 阅读全文
posted @ 2015-04-14 21:44 Painting、时光 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int a[10]; int n; scanf("%d",&n); for(int i = 1; i <= n ; i++) scanf("%d",&... 阅读全文
posted @ 2015-04-14 21:14 Painting、时光 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Superbot is an interesting game which you need to control the robot on an N*M grid map.As you see, it's just a simple game: there is a control panel w... 阅读全文
posted @ 2015-04-14 20:28 Painting、时光 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Pattern lock security is generally used in Android handsets instead of a password. The pattern lock can be set by joining points on a 3 × 3 matrix in ... 阅读全文
posted @ 2015-04-13 12:53 Painting、时光 阅读(218) 评论(0) 推荐(0) 编辑
摘要: DescriptionA histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have ... 阅读全文
posted @ 2015-04-11 20:18 Painting、时光 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 转自perlman 原文链接:戳这里命令历史以:和/开头的命令都有历史纪录,可以首先键入:或/然后按上下箭头来选择某个历史命令。启动vim在命令行窗口中输入以下命令即可vim 直接启动vimvim filename 打开vim并创建名为filename的文件文件命令打开单个文件vim file同时... 阅读全文
posted @ 2015-04-11 19:47 Painting、时光 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Description要求找出具有下列性质数的个数(包括输入的自然数n): 先输入一个自然数n( n #includeusing namespace std;int main(){ int n; int dp[1100]; scanf("%d",&n); dp[1] = 1;... 阅读全文
posted @ 2015-03-29 20:17 Painting、时光 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Description平面上有n条直线,且无三线共点,问这些直线能有多少种不同交点数。 比如,如果n=2,则可能的交点数量为0(平行)或者1(不平行)。Input输入数据包含多个测试实例,每个测试实例占一行,每行包含一个正整数n(n #include#includeusing namespace s... 阅读全文
posted @ 2015-03-28 20:30 Painting、时光 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,... 阅读全文
posted @ 2015-03-28 20:07 Painting、时光 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Description大家一定看过地道战的电视吧。 话说小兵张嘎有一回也跑去支援地道战了。那是河北的一个小镇里,这个小镇比较复杂,什么样的人都有。所以张嘎不能走大街,只能在地道里走。但根据地质情况不同,所以同样长的街道,地道里要走的时间可能不一样。当然每条街道下面都有地道,而且在街道连接处地道也有连... 阅读全文
posted @ 2015-03-28 19:48 Painting、时光 阅读(405) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 39 下一页