第一种方式:简单的CD装饰,如下图,默认条件为真,执行move to 节点以后将条件改为否,5秒(装饰节点配置)后条件改为真 第二种方式:需要创建一个game tag的table,然后到项目设置里配置,使用有2个装饰,tag cooldown是判断,set tag cooldown为执行cd ...
分类:
其他好文 时间:
2019-04-18 17:03:34
阅读次数:
193
什么是Random类 此类的实例用于生成伪随机数。 Random使用步骤 查看类 java.util.Random :该类需要 import导入使后使用。 查看构造方法 public Random() :创建一个新的随机数生成器。 查看成员方法 public int nextInt(int n) : ...
分类:
其他好文 时间:
2019-04-18 09:24:45
阅读次数:
127
$TOKEN="XXXX"; $file = "D:\www\weixin\game.jpg"; $data = array( 'media'=> new CURLFile($file) ); $url = 'https://api.weixin.qq.com/cgi-bin/material/ad... ...
分类:
微信 时间:
2019-04-15 16:30:36
阅读次数:
202
A. Game 23 #include <bits/stdc++.h> using namespace std; int N, M; int main() { int ans = 0; int cnt = 0; scanf("%d%d", &N, &M); if(N == M) ans = 0; e ...
分类:
其他好文 时间:
2019-04-15 00:34:38
阅读次数:
166
1 public class Solution 2 { 3 public bool DivisorGame(int N) 4 { 5 if (N % 2 == 1) 6 { 7 return false; 8 } 9 ... ...
分类:
其他好文 时间:
2019-04-14 13:56:17
阅读次数:
98
E. Packmentime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA game field is a strip of 1?×?n square ...
分类:
其他好文 时间:
2019-04-13 13:56:08
阅读次数:
209
Game with Strings 题意并不是在图上走,看了好久才看出来。。 dp[ i ][ mask ]表示从 i 层开始走,起点有mask个, a的个数-b的个数的 最大值或者最小值。 ...
分类:
其他好文 时间:
2019-04-12 20:37:49
阅读次数:
178
[TOC] 1. CSS(Cross Site Scripting,又名XSS,即跨站脚本攻击) 1. 定义 跨站脚本(Cross Site Scripting)攻击是指在远程WEB页面的HTML代码中插入恶意的JavaScript,VBScript, ActiveX,HTML,或Flash等脚本, ...
分类:
其他好文 时间:
2019-04-12 16:20:53
阅读次数:
163
https://leetcode.com/problems/dungeon-game/ 一个二维矩阵n*m做的地图上,每个都有或正或负的整数,对一从左上到右下的最短路径(每步只能向右或者下)我们走的同时会记录当前位置的累加和s,所以一条路会有n+m-2个位置,所有这些和的最小值是该路径的价值,求价值 ...
分类:
其他好文 时间:
2019-04-11 14:49:30
阅读次数:
121