码迷,mamicode.com
首页 >  
搜索关键字:being a good boy in    ( 3225个结果
Count Good Substrings
Count Good SubstringsTime Limit: 2000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:451D64-bit integer IO format:%I64d ...
分类:其他好文   时间:2014-08-12 12:43:24    阅读次数:237
(转载)单调栈题目总结
POJ 2796 Feel Good题意:给出一个长度为n(n<100000)的序列,求出一个子序列,使得这个序列中的最小值乘以这个序列的和的值最大。思路:枚举每一个点,然后算出以这个点为最小值的区间能向左向右扩展到哪里,然后选择最优的就行。SOJ3085: windy's cake V题意:和PO...
分类:其他好文   时间:2014-08-11 17:35:32    阅读次数:578
the apple tree
the apple tree A long time ago, there was a huge apple tree. A little boy loved to come and lay around it every day. He climbed to the tree top, ate -the apples, took a nap under the shadow... He l...
分类:移动开发   时间:2014-08-11 06:19:12    阅读次数:265
uva 112 - Tree Summing
Tree SummingBackgroundLISP was one of the earliest high-level programming languages and, with FORTRAN, is one of the oldest languages currently being ...
分类:其他好文   时间:2014-08-10 18:17:10    阅读次数:271
HNU 12876 Quite Good Numbers 完美数变形
筛法是一种很快的方法,贴代码纪念一下。 做法很像筛法 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #...
分类:其他好文   时间:2014-08-10 10:19:50    阅读次数:223
筛法暴力打表 --- hdu : 12876 Quite Good Numbers
QuiteGoodNumbersTime Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KBTotal submit users: 77, Accepted users: 57Problem 12876 : No specia...
分类:其他好文   时间:2014-08-10 01:30:09    阅读次数:368
CodeForces 451D Count Good Substrings
题意: 一个只包含a和b的字符串  问  它有几个长度为偶数和长度为奇数的“压缩回文串”  压缩的概念是  相邻的相同字符压缩成一个字符 思路: 串经过压缩一定满足如下形式 ……ababab……  那么这样只要两端的字符相同则中间一定是回文的  因此对于一个a它作为左端点形成的回文串个数就等于它右边的a的个数  那么长度是奇数还是偶数呢  可以这么判断  如果a在奇数位置上和它匹配的a也在奇...
分类:其他好文   时间:2014-08-09 21:34:29    阅读次数:233
LeetCode第七题,Reverse Integer
题目 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here are some good questions to ask...
分类:其他好文   时间:2014-08-09 00:13:36    阅读次数:309
给字符数组赋值的方法
main() { char s[30]; strcpy(s, "Good News!"); /*给数组赋字符串*/ . . . } 上面程序在编译时, 遇到char s[30]这条语句时, 编译程序会在内存的某处留 出连续30个字节的区域, 并将第一个字节的地址赋给s。当遇到strcpy( strc...
分类:其他好文   时间:2014-08-08 17:53:36    阅读次数:295
设置安卓设备屏幕方向,平板为横屏,手机为竖屏
http://stackoverflow.com/questions/9627774/android-allow-portrait-and-landscape-for-tablets-but-force-portrait-on-phoneHere's a good way usingresource...
分类:移动开发   时间:2014-08-08 17:43:16    阅读次数:779
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!