题意:有n个火柴棒,已知拼成9个数字花费的数目,求能拼出的能整除m的最大数分析:dp[i][j]表示,用i个火柴棒,拼出的数余m余数为j时的最大数int tmp=dp[i][j]*10+k;(k是拼成的某个数)dp[i+num[k]][tmp%m]=max(dp[i+num[k]][tmp%m],t...
分类:
其他好文 时间:
2015-10-14 00:16:15
阅读次数:
184
Although Drupals 7+ run smoothly on PHP 5.3, Drupal 6 still feels much better with PHP 5.2. Even though D6 core is compatible with PHP 5.3 for quite s...
分类:
Web程序 时间:
2015-10-13 10:39:15
阅读次数:
928
RunningTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5652Accepted: 2128DescriptionThe cows are trying to become better athletes, so Bessie ...
分类:
其他好文 时间:
2015-10-03 23:13:20
阅读次数:
420
原文链接:http://blog.csdn.net/cocosviva/article/details/18970717另一个比較不错的cocos2dx扩展库:https://github.com/stubma/cocos2dx-better版本号管理及下载列表DownloadCocosBase-2...
分类:
Web程序 时间:
2015-10-01 20:32:38
阅读次数:
333
只想简单地比较一下文本之间是否有变化,就可以函数defflib.context_diff来实现。例子:#python3.4.3
import difflib
text1 = ''' 1. Beautiful is better than ugly.
2. Explicit is better than implicit.
3. Simple is better than comp...
分类:
其他好文 时间:
2015-09-28 11:50:39
阅读次数:
433
当想创建一个HTML来表示文件之间差异时,就可以使用HtmlDiff对象。特别对于Web服务器的应用就更加方便了,直接把数据返回即可。例子:#python3.4.3 import difflib text1 = ''' 1. Beautiful is better than ugly. 2. Explicit is better than implicit. 3. Simple is b...
分类:
Web程序 时间:
2015-09-27 12:35:11
阅读次数:
203
In order to make the codes looks unified and make it easy to understand, it's better to use the same formatter for our code, the xml is the standard f...
分类:
编程语言 时间:
2015-09-25 15:57:46
阅读次数:
267
InthissectionwewilldoanHSRPconfigurationtounderstandtheissuebetter.Todothiswewillusethebelowthetopology[t‘pld].Attheendofthisarticle,youwillfindtheGNS3configurationlabofthislesson.BeforetheHSRPconfiguration,wemustprepareourtopology.Wewillchangetheroutername..
分类:
移动开发 时间:
2015-09-24 19:36:42
阅读次数:
392
From: http://www.differencebetween.net/technology/difference-between-zip-and-gzip/ Summary: 1. GZIP can achieve better compression compared to ZIP. 2....
分类:
其他好文 时间:
2015-09-24 10:52:15
阅读次数:
142
http://blogs.windows.com/buildingapps/2015/08/05/build-better-apps-windows-10-by-10-development-series/We’ve been talking about the new capabilities t...
分类:
移动开发 时间:
2015-09-23 21:10:05
阅读次数:
225