码迷,mamicode.com
首页 >  
搜索关键字:playing a game    ( 5937个结果
5.23 VJ D - Kana and Dragon Quest game
#include<bits/stdc++.h>#define ll long longusing namespace std;/*题意:怪物血量为x,可以使用两种技能,分别为x/2+10和x-10,当x<=10时不能使用技能1*/int main(){ int t,x,n,m; cin>>t; fo ...
分类:其他好文   时间:2020-05-23 13:04:49    阅读次数:50
Unity3D性能优化之资源原理科普篇
一、Unity的资源(Asset)和对象(UnityEngine.Objects) 资源(Asset) : 是硬盘中的文件,存储在Unity工程的Assets文件夹内。 例如,纹理(Texture),材质(Material)和FBX文件等,它们都是资源。一些资源的数据格式是Unity原生支持的,例如 ...
分类:编程语言   时间:2020-05-22 19:18:21    阅读次数:57
从零开始开发一款H5小游戏(三) 攻守阵营,赋予粒子新的生命
本系列文章对应游戏代码已开源 Sinuous game。 每个游戏都会包含场景和角色。要实现一个游戏角色,就要清楚角色在场景中的位置,以及它的运动规律,并能通过数学表达式表现出来。 场景坐标 canvas 2d的场景坐标系采用平面笛卡尔坐标系统,左上角为原点(0,0),向右为x轴正方向,向下为y轴正 ...
分类:其他好文   时间:2020-05-22 16:58:58    阅读次数:61
BUUCTF Re部分wp(三)
BUUCTF Re部分wp(一) BUUCTF Re部分wp(二) 1,[GUET-CTF2019]number_game 这题似乎是与二叉树相关,但我想试试爆破的方法 可以看出输入要求在0和4之间,长度为10,5^10可以接受 from itertools import * import subp ...
分类:其他好文   时间:2020-05-18 23:03:07    阅读次数:229
[UVA532] Dungeon Master 题解
Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille ...
分类:其他好文   时间:2020-05-18 20:55:26    阅读次数:60
【构造】D - Game With Array
"D Game With Array" 题意:构造一个长度为$N$,和为$S$的正整数序列,问能不能找到一个1~S的数$K$,使得数组里找不出一个子序列的和为$K$或者$S K$ 思路:构造一个前$N 1$项均为1,第$N$项为$S (N 1)$的数组即可。此时只要$S (N 1) N$,取$K=N ...
分类:其他好文   时间:2020-05-18 09:15:18    阅读次数:81
2.23骰子游戏
#写一个骰子游戏 import random class Game: def __init__(self,player1,player2): self.player1 = player1 self.player2 = player2 def star_game(self): self.player1 ...
分类:其他好文   时间:2020-05-17 22:01:42    阅读次数:87
D. Game With Array
Petya and Vasya are competing with each other in a new interesting game as they always do. At the beginning of the game Petya has to come up with an a ...
分类:其他好文   时间:2020-05-17 13:32:47    阅读次数:135
Codeforces Round #643 (Div. 2) 题解 (ABCD)(佛系更新中)
[TOC] https://codeforces.com/contest/1355 打一半和室友开黑去了哈哈哈哈哈哈反正不计分(不要学我) A. Sequence with Digits 这题我会证!首先对于百位来说,不可能从x跳到x+2,只能从x变成x+1或者不变(因为最大变化量为 $9\time ...
分类:其他好文   时间:2020-05-17 00:59:41    阅读次数:90
Codeforces Round #643 (Div. 2) D. Game With Array(构造)
Petya and Vasya are competing with each other in a new interesting game as they always do. At the beginning of the game Petya has to come up with an a ...
分类:其他好文   时间:2020-05-16 23:37:41    阅读次数:129
5937条   上一页 1 ... 14 15 16 17 18 ... 594 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!