VJ题目链接题意:n个数,求区间[l,r] 使得 sum[l,r]*min(a[l],a[l+1],...,a[r]) 最大。若有多种答案,输出区间最短的。若还有多组,输出最先出现的。思路:求出a[i]为最小数时,最大的区间范围,即求a[i]的最左边的小于a[i]的位置,最右边的位置。坑点:因为要最...
分类:
其他好文 时间:
2014-09-29 14:12:40
阅读次数:
241
If you spend a lot of time typing plain text, writing programs or HTML, you can save much of that time by using a good editor and using it effectively...
分类:
其他好文 时间:
2014-09-29 13:50:10
阅读次数:
267
main() { char s[30]; strcpy(s, "Good News!"); /*给数组赋字符串*/ . . . } 上面程序在编译时, 遇到char s[30]这条语句时, 编译程序会在内存的某处留 出连续30个字节的区域, 并将第一个字节的地址赋给s。当遇到strcpy( strc...
分类:
其他好文 时间:
2014-09-28 16:29:53
阅读次数:
170
A good question is 50% of a good solution, now let’s share your questions about the text book(s), and post them on your blog.pick a text book (we have...
分类:
其他好文 时间:
2014-09-28 12:44:52
阅读次数:
119
public class Example { String str = new String("good"); static StringBuffer sbf=new StringBuffer(); char[] ch = {'a','b','c'}; public static void ...
分类:
其他好文 时间:
2014-09-27 23:44:30
阅读次数:
274
Remmarguts' DateTime Limit:4000MSMemory Limit:65536KTotal Submissions:21396Accepted:5823Description"Good man never makes girls wait or breaks an appoi...
分类:
其他好文 时间:
2014-09-25 22:45:27
阅读次数:
258
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1850这个题目不难,不过我开始题目意思理解错了,注意一点,一堆牌最多只能取一次,只能有一种选择,看代码低级代码#includeint main(void){ int m,i,j,s,k; int a[.....
分类:
编程语言 时间:
2014-09-25 21:53:37
阅读次数:
227
main() { char s[30]; strcpy(s, "Good News!"); /*给数组赋字符串*/ . . . } 上面程序在编译时, 遇到char s[30]这条语句时, 编译程序会在内存的某处留 出连续30个字节的区域, 并将第一个字节的地址赋给s。当遇到strcpy( strc...
分类:
其他好文 时间:
2014-09-25 12:36:08
阅读次数:
291
It is not a good idea to use dev server in Production Environment.
Apache or Nginx are good choice.Both of them are of great used as the web server.
...
分类:
其他好文 时间:
2014-09-25 02:39:28
阅读次数:
338
我其实是个本三的学生,在大一、大二的时光中,我就是和刚入学的其他同学一样,喜欢参加各种组织,就如同电视中,或者是动漫中的学生会会长那样的挥斥方遒,指点江山!做一个good的好少年,于是我充满热情地参加各种组织。本人在计算机系属自动化专业的学生,当时对自动化很感兴趣,觉得我们自动化是万能的,什么都能....
分类:
其他好文 时间:
2014-09-24 23:23:57
阅读次数:
219