码迷,mamicode.com
首页 >  
搜索关键字:file python3    ( 63124个结果)
codeforces219C - Color Stripe DP+贪心
题意:给你n,k,大意就是说给你一个已经涂满颜色长为n的字符串,现有k种颜色可以选择,问你最少要改变多少个箱子的颜色使得相邻箱子之间颜色不同。解题思路:当k = 2 时单独讨论,不能用贪心,其余情况都可贪心得到。解题代码: 1 // File Name: 219c.cpp 2 // Author.....
分类:其他好文   时间:2014-07-26 17:09:41    阅读次数:256
lightmapping
【lightmapping】 Window -> Lightmapping,即可打开Lightmaping窗口。 生成lightmap的GameObject的对象必须将Lightmap Static钩上。此举告诉Beast,此GameObject可以被Baked。 参考:1、file://lo...
分类:移动开发   时间:2014-07-26 17:04:51    阅读次数:256
non-local-static 变量的初始化
non-local-static 变量,包括global对象、定义于namespace作用域内的对象,classes内、以及在file作用域内被声明为static的对象,不包括在函数内的static变量。由于c++对不同编译单元non-local-static 变量的初始化顺序没有规定,如果这些no...
分类:其他好文   时间:2014-07-26 17:01:11    阅读次数:346
codeforces359B - Permutation 构造
题意:给你n,k,问你是否满足 所有偶数项减前一项绝对值的和 - 所有偶数项减前一项和的绝对值 = 2×k 解题思路:因为K 的范围适合所以就直接构造了解题代码: 1 // File Name: 359b.cpp 2 // Author: darkdream 3 // Created Time: ....
分类:其他好文   时间:2014-07-26 16:50:31    阅读次数:273
git如何删除本地所有未提交的更改
位于分支develop您的分支与上游分支‘origin/develop‘一致。未跟踪的文件:(使用"gitadd<file>..."以包含要提交的内容) :all :crm_overview :fm_overview :oa_overview :pm_overview dashboard#indexgitcheckout.&&gitclean-xdf
分类:其他好文   时间:2014-07-26 15:34:34    阅读次数:217
Jump Game Two
class Solution { public: const int MAXVALUE = 1 << 30; int findMinStepToIndex(int maxNumbers[],int maxSteps,int index) { if (index == 0) return 0; int left = 1; int right = maxSteps;...
分类:其他好文   时间:2014-07-26 15:30:01    阅读次数:170
cocos2dx 自动添加cpp文件到android.mk
将 LOCAL_SRC_FILES := hellocpp/main.cpp ../../Classes/AppDelegate.cpp ../../Classes/HelloWorldScene.cpp修改成 FILE_LIST := hellocpp/main.cpp FILE_LIST += $(wi...
分类:移动开发   时间:2014-07-26 15:17:40    阅读次数:170
【翻译自mos文章】Weblogic AdminServer 启动fail,报错为"unable to get file lock, will retry"
【翻译自mos文章】Weblogic AdminServer 启动fail,报错为"unable to get file lock, will retry"...
分类:Web程序   时间:2014-07-26 15:12:20    阅读次数:237
exec函数簇
exec一共有六种函数,都是以exec开头。1 int execl(const char *path, const char *arg, ...);2 int execlp(const char *file, const char *arg, ...);3 int execle(const char...
分类:其他好文   时间:2014-07-26 14:56:31    阅读次数:232
stm32调试记录一
..\..\SYSTEM\usart\usart.c(1): error: #5: cannot open source input file "sys.h": No such file or directory #include "..\sys\sys.h"这样就可以找到路径了 再次编译出现了问题...
分类:其他好文   时间:2014-07-26 14:56:20    阅读次数:442
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!