随笔分类 -  尺取

摘要:Putting two similar strings together will create a very strong power that can quake the earth into parts and the person who did that can be called the 阅读全文
posted @ 2020-04-15 16:00 AlexLIN· 阅读(315) 评论(0) 推荐(0)
摘要:You are given an array a consists of n elements, find the maximum number of elements you can select from the array such that the absolute difference b 阅读全文
posted @ 2020-04-13 13:08 AlexLIN· 阅读(274) 评论(0) 推荐(0)
摘要:Signals of most probably extra-terrestrial origin have been received and digitalized by The Aeronautic and Space Administration (that must be going th 阅读全文
posted @ 2020-04-13 11:25 AlexLIN· 阅读(192) 评论(0) 推荐(0)
摘要:Jessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on it. If she 阅读全文
posted @ 2020-04-13 09:48 AlexLIN· 阅读(227) 评论(0) 推荐(0)
摘要:题意:给定长度n的整数数组,以及整数s,求出总和不小于s的子数组长度的最小值。 Input 第一行输入n和s,第二行输入n个正整数。 Output 找到满足要求的子数组的最小长度,如果没有,输出0。 Sample Input 2 10 15 5 1 3 5 10 7 4 9 2 8 5 11 1 2 阅读全文
posted @ 2020-04-13 09:11 AlexLIN· 阅读(160) 评论(0) 推荐(0)