Cocos Createor 资源 略 场景 1. 节点树 2. 节点与组件 3. 坐标系 脚本 1. 组件声明,生命周期回调 2. 节点访问 + 直接创建 + 克隆已有节点 + 创建预制 + 销毁节点 只是从父节点移除(可能移动到其他节点下面),不会释放内存 + 访问组件/节点 + 全局模块 3. ...
分类:
其他好文 时间:
2019-04-21 09:23:42
阅读次数:
1004
Go语言开发Windows应用 当第一次看到Go程序在windows平台生成可执行的exe文件,就宣告了windows应用也一定是Go语言的战场。Go不是脚本语言,但却有着脚本语言的轻便简单的特性。相较于php和python之类以服务器控制台为主要战场的脚本语言来说,Go语言是真正的圆了“动态语言的 ...
分类:
编程语言 时间:
2019-04-21 09:21:43
阅读次数:
207
题目链接:http://codeforces.com/problemset/problem/1141/A 首先,nn一定要是mm的倍数。否则就无法转换,输出 1; 然后令k=.\frac{m}{n} ,即k=.\frac{m}{n} . 将k 分解质因数,若分解结果是k=.\frac{m}{n} , ...
分类:
其他好文 时间:
2019-04-20 22:53:25
阅读次数:
182
"题目地址" 思路 二分平均值,区间为$0$~$2000$。将每个$a[i]$减去平均值,就只用考虑字段和是否$ =0$了。 关于计算子段和,可以使用前缀和表示,$sum[i]$表示前$i$个数的和。 由$L$~$n$以循环子段的尾巴,关于每次循环: 维护一个子段开头的最小值 找到这个平均值中,最大 ...
分类:
其他好文 时间:
2019-04-20 21:07:40
阅读次数:
157
题目描述 For their physical fitness program, N (2 ≤ N ≤ 1,000,000) cows have decided to run a relay race using the T (2 ≤ T ≤ 100) cow trails throughout t ...
分类:
其他好文 时间:
2019-04-20 14:30:52
阅读次数:
170
PAiC++ April 10, 2019Assignment 4 : Boggle GameThe Game of BoggleThe Boggle board is a 4x4 grid onto which you shake and randomly distribute 16 dice. ...
分类:
编程语言 时间:
2019-04-19 19:48:58
阅读次数:
163
df 查看 占用 继续 sudo du ah max depth=1 16G 原因: 因为DNS查询错误,返回了所有的日志数据,解决方法: 【系统管理】=》【system log】= 【日志级别】=》【Name: javax.jmdns,Level: off】 ...
分类:
其他好文 时间:
2019-04-19 18:16:34
阅读次数:
205
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu ...
分类:
其他好文 时间:
2019-04-19 11:51:05
阅读次数:
141
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu ...
分类:
其他好文 时间:
2019-04-19 11:44:35
阅读次数:
151
HDU 2174 kiki's game 题意:有一个N*M的棋盘,起点在右上角,两个人每轮可把棋子向左、向下或者向左下移动一格,直到不能移动棋子者输。 NP图解决: 概念: 必败点(P点):前一个选手将取胜的位置称为必败点。 必胜点(N点):下一个选手将取胜的位置成为必胜点。 性质: 步骤: NP ...
分类:
其他好文 时间:
2019-04-18 20:07:10
阅读次数:
157