码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
POJ - 2080 Calendar
题意:求2000.1.1(周六)过n天后,是哪年哪月哪日星期几 思路:看到过好多次了这种题,细心点模拟就是了 #include #include #include #include using namespace std; char w[7][10]={"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ,...
分类:其他好文   时间:2014-05-10 09:28:33    阅读次数:266
cocos2d-x 之 CCCallFunc CCCallFuncN CCCallFuncND
#include "HelloWorldScene.h" #include "SimpleAudioEngine.h" using namespace cocos2d; using namespace CocosDenshion; CCScene* HelloWorld::scene() { CCScene *scene = CCScene::create(); HelloWo...
分类:其他好文   时间:2014-05-10 09:26:12    阅读次数:337
【来写个2048吧】—— 创建卡片类以及添加
一、创建卡片类 首先想想卡片是一个精灵,那么我们就继承精灵类。然后还要有数字,背景颜色。基本就这些,那么看代码吧。 Card.h代码 #ifndef _CARD_H_ #define _CARD_H_ #include "cocos2d.h" USING_NS_CC ; class CardSprite : public Sprite { public : ...
分类:其他好文   时间:2014-05-10 09:25:46    阅读次数:280
CareerCup之1.3字符串去重
【题目】 原文: 1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables are fine. An extra copy of...
分类:其他好文   时间:2014-05-07 08:48:12    阅读次数:372
uva 12105 - Bigger is Better(dp)
题目链接:uva 12105 - Bigger is Better 题目大意:有n根火柴,要组成一个数字能够整除m,并且最大。 解题思路:dp[i][j]表示用了i个火柴,组成的数字模掉m余j的情况,只不过状态保留的是字符串。 #include #include #include #include using namespace std; const int...
分类:其他好文   时间:2014-05-07 07:59:52    阅读次数:314
稳定婚姻问题
原题POJ 3487 稳定婚姻问题的解法,男士主动,女士被动,每次找一个光棍的男士对他最满意的女士求婚,如果女士是未婚或者女士当前的未婚夫在女士心目中不如他,就把男士定为女士的未婚夫,一直进行循环。 #include #include #include #include #include #define maxn 1000 using namespace std; int pref[maxn]...
分类:其他好文   时间:2014-05-07 07:43:34    阅读次数:313
hdu 3038 (并查集)
题目大意: 给出m个询问,问【l,r】之间的和   ,求出有多少次询问不和之前的矛盾的。 思路分析: 用并查集记录当前节点到根节点的和。 #include #include #include #include #define maxn 222222 using namespace std; int set[maxn]; int sum[maxn]; in...
分类:其他好文   时间:2014-05-07 07:35:05    阅读次数:386
No! More!! Long!!! Days... at Work!!!!
Nido Framework at Use - The diagram below shows how Nido Framework reduces the size of your DAL and BLL. Nido Framework is a reusable and highly generic code library developed using Microsoft ....
分类:其他好文   时间:2014-05-07 07:22:40    阅读次数:333
POJ3525 Most Distant Point from the Sea(半平面交)
今天打算做两道半平面交,一题卡太久了,心都碎了。。。#pragma warning(disable:4996)#include #include #include #include #include #include #include using namespace std;#define maxn...
分类:其他好文   时间:2014-05-06 12:27:57    阅读次数:389
unity3D和串口之间的通信,接收下位机数据和发送指令
using UnityEngine;using System.Collections;using System.IO.Ports;using System;using System.Collections.Generic;using System.Threading;public class Por...
分类:其他好文   时间:2014-05-06 10:15:17    阅读次数:5671
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!