• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






liguangsunls

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 65 66 67 68 69 70 71 72 73 ··· 188 下一页

2017年7月11日

cocos2d-x_AnchorPoint锚点
摘要: 锚点是定位和变换操作的一个重点。锚点我们能够看成用一根图钉将一张纸或者相片钉在墙上的那个点。 节点的位置是由我们设置的position和anchor point一起决定的。 值得一提的是,anchor point的默认位置Layer的是左下,而其它的node是中点。 节点的原点是父节点的左下角。 [ 阅读全文
posted @ 2017-07-11 10:38 liguangsunls 阅读(229) 评论(0) 推荐(0)
 
打印全排列和stl::next_permutation
摘要: 打印全排列是个有点挑战的编程问题。STL提供了stl::next_permutation完美的攻克了这个问题。 可是,假设不看stl::next_permutation,尝试自己解决,怎么做? 非常自然地,使用递归的办法: 1. 单个元素的排列仅仅有1个。 2. 多个元素的排列能够转化为: 以每一个 阅读全文
posted @ 2017-07-11 09:34 liguangsunls 阅读(175) 评论(0) 推荐(0)
 
二、搜索
摘要: 1.红与黑(codevs2806) 题目网址:http://codevs.cn/problem/2806/ 代码: var s:array[0..21,0..21] of char; i,j,sum,w,c,x,y:longint; procedure m(a,b:longint); begin i 阅读全文
posted @ 2017-07-11 08:50 liguangsunls 阅读(194) 评论(0) 推荐(0)
 

2017年7月10日

ZOJ 3690 Choosing number(dp矩阵优化)
摘要: Choosing number Time Limit: 2 Seconds Memory Limit: 65536 KB There are n people standing in a row. And There are m numbers, 1.2...m. Every one should 阅读全文
posted @ 2017-07-10 21:50 liguangsunls 阅读(216) 评论(0) 推荐(0)
 
最全Pycharm教程(29)——再探IDE,速成手冊
摘要: 1、准备工作 (1)确认安装了Python解释器,版本号2.4到3.4均可。 (2)注意Pycharm有两个公布版本号:社区版和专业版,详见 Edition Comparison Matrix 2、初始化安装 第一次安装Pycharm时,安装程序会咨询你几个重要问题: (1)是否已经预先保存了设置信 阅读全文
posted @ 2017-07-10 21:06 liguangsunls 阅读(5110) 评论(0) 推荐(0)
 
nyoj 585 取石子(六) 【Nim】
摘要: 取石子(六) 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描写叙述近期TopCoder的PIAOYI和HRDV非常无聊,于是就想了一个游戏,游戏是这种:有n堆石子,两个人轮流从当中某一堆中随意取走一定的石子,最后不能取的为输家。注意: 每次仅仅能从一堆取随意个,能够取完这堆, 阅读全文
posted @ 2017-07-10 19:47 liguangsunls 阅读(232) 评论(0) 推荐(0)
 
Cocos2d-x 常见宏
摘要: 1)NS_CC_BEGIN cocos2d命名空间開始 2) NS_CC_END cocos2d命名空间结束 3)USING_NS_CC 声明cocos2d命名空间 4)CC_SYNTHESIZE_READONLY(varType, varName, funName)声明一个成员变量以及getfun 阅读全文
posted @ 2017-07-10 18:27 liguangsunls 阅读(117) 评论(0) 推荐(0)
 
【RQNOJ】460 诺诺的队列
摘要: 【题目大意】 求全部数对(i,j)满足随意a[k]<=a[i]且a[k]<=a[j]。 形象地说,就是有一群人站成一列。每一个人有一定的身高,然后问有多少对人能够互相看得到。 把数对(i,j)简单地称之为看得到的数对。 【解析】单调栈 先借用一下曾经做的题:[Vijos]1926 紫色的手链。求随意 阅读全文
posted @ 2017-07-10 17:11 liguangsunls 阅读(241) 评论(0) 推荐(0)
 
NYOJ 483 Nightmare 【广搜】+【无标记】
摘要: Nightmare 时间限制:1000 ms | 内存限制:65535 KB 难度:4 描写叙述 Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The lab 阅读全文
posted @ 2017-07-10 16:39 liguangsunls 阅读(137) 评论(0) 推荐(0)
 
冒泡,简单选择,直接插入排序(Java版)
摘要: 冒泡。简单选择,直接插入这三种排序都是简单排序。 工具类 package Utils; import java.util.Arrays; public class SortUtils { public static void swap(int[] a,int i,int j){ int temp = 阅读全文
posted @ 2017-07-10 15:52 liguangsunls 阅读(209) 评论(0) 推荐(0)
 
上一页 1 ··· 65 66 67 68 69 70 71 72 73 ··· 188 下一页