码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
Codeforces Round #250 (Div. 1)
这几次CF都挺惨。。A没条边权设为两端点的最小点权,最后加起来。数组开小,WA一次 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 using ....
分类:其他好文   时间:2014-06-02 12:53:00    阅读次数:216
JSOI2008星球大战(并查集)
膜拜HZWER大牛的编码能力!附上他的代码(我的代码不知为何一直莫名出错……)#include#include#includeusing namespace std;int tot,n,m,d,father[400001],head[400001],q[400001],ans[400001],cnt...
分类:Web程序   时间:2014-06-02 11:06:31    阅读次数:306
OpenGL【2 坐标变换】
// OpenGL.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include using namespace std; void init(void) { glClearColor(1.0,1.0,1.0,1.0); glClear(GL_COLOR_BUFFER_BIT); glShadeMod...
分类:其他好文   时间:2014-06-02 11:02:18    阅读次数:282
背包与构造
题目:给定一个数,,求它最少可以用多少个包含字符串"61"的数字来表示,并输出这些数。   分析:对于大于6161的任何一个整数,都有如下表示               对于小于1616的数,直接背包即可。   代码: #include #include #include using namespace std; typedef long long LL; const...
分类:其他好文   时间:2014-06-02 10:35:40    阅读次数:223
1+2+3+...+n不能用while、for、if else等实现
问题描述 求 1+2+ … +n ,要求不能使用乘除法、 for 、 while 、 if 、 else 、 switch 、 case 等关键字以及条件判断语句。 实际意义不大,题目涉及的知识还是不错的! 方法1 用构造函数求解。 #include using namespace std; class Plus { public: Plu...
分类:其他好文   时间:2014-06-02 10:29:11    阅读次数:208
cocos2d 人物移动
#include"HelloWorldScene.h" #include"MyLayer.h" usingnamespacecocos2d; CCScene*HelloWorld::scene() { CCScene*scene=NULL; do { //‘scene‘isanautoreleaseobject scene=CCScene::create(); CC_BREAK_IF(!scene); //‘layer‘isanautoreleaseobject HelloWorld*layer=HelloW..
分类:移动开发   时间:2014-06-02 07:53:45    阅读次数:339
记次浙大月赛 134 - ZOJ Monthly, June 2014
链接虽做出的很少,也记录下来,留着以后来补。。浙大题目质量还是很高的B并查集的一些操作,同类和不同类我是根据到根节点距离的奇偶判断的,删点是直接新加一个点,记得福大月赛也做过类似的,并差集的这类关系题目还是比较常见的,有空深究一下。 1 #include 2 #include 3 #include....
分类:其他好文   时间:2014-06-02 07:26:51    阅读次数:287
POJ3984 迷宫问题【水BFS】
#include #include #include #include #include #include #include #include using namespace std; mapmymap; map::iterator it; #define LEN 1111 bool visited[LEN]; //bool arc[LEN][LEN]; vector arc[5...
分类:其他好文   时间:2014-06-02 07:07:58    阅读次数:205
POJ2491 Scavenger Hunt【裸map】
#include #include #include #include #include #include #include #include using namespace std; int main() { #ifndef ONLINE_JUDGE freopen("D:/1.txt","r",stdin); freopen("D:/2.txt","w",stdout...
分类:其他好文   时间:2014-06-02 07:02:20    阅读次数:253
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!