码迷,mamicode.com
首页 >  
搜索关键字:segment game    ( 7679个结果
CF#52 C Circular RMQ (线段树区间更新)
Description You are given circular array a0,?a1,?...,?an?-?1. There are two types of operations with it: inc(lf,?rg,?v) — this operation increases each element on the segment [lf,?rg] (inclu...
分类:其他好文   时间:2014-08-15 00:01:56    阅读次数:327
UISegmentedControl 样式
_segment = [[UISegmentedControl alloc] initWithItems:@[@"aaaa", @"bbbb"]]; [_segment setFrame:CGRectMake(20, 300, 280, 30)]; [_segment setTintColor:.....
分类:其他好文   时间:2014-08-14 20:03:29    阅读次数:221
Number Game poj1143
DescriptionChristine and Matt are playing an exciting game they just invented: the Number Game. The rules of this game are as follows.The players take...
分类:其他好文   时间:2014-08-14 20:00:10    阅读次数:244
Crane(线段树)
Description ACM has bought a new crane (crane -- je?áb) . The crane consists of n segments of various lengths, connected by flexible joints. The end of the i-th segment is joined to the beginning...
分类:其他好文   时间:2014-08-14 16:50:28    阅读次数:240
POJ 2965-The Pilots Brothers' refrigerator--位运算+BFS+回溯路径
The Pilots Brothers' refrigerator Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 18576   Accepted: 7108   Special Judge Description The game “The Pilots...
分类:其他好文   时间:2014-08-14 14:19:08    阅读次数:227
FZU Problem 2148 Moon Game (判断凸四边形)
题目链接题意 : 给你n个点,判断能形成多少个凸四边形。思路 :如果形成凹四边形的话,说明一个点在另外三个点连成的三角形内部,这样,只要判断这个内部的点与另外三个点中每两个点相连组成的三个三角形的面积和要与另外三个点组成的三角形面积相同。中途忘了加fabs还错了好几次 1 //FZU2148 2 #...
分类:其他好文   时间:2014-08-14 13:50:08    阅读次数:169
Poj1753 Flip Game
题目理解:4x4=16个格子,每个格子有两种颜色:黑(b)或白(w),给出初始颜色后,每次可翻转一个格子,即由黑变白,或由白变黑。每翻转一个格子时,其周围的四个格子(即上下左右四个)也要一起翻转。输入为4x4矩阵,表示格子的初始颜色,输出为使得所有格子翻转为同一颜色所需要的翻转的最小格子数目或Imp...
分类:其他好文   时间:2014-08-14 13:15:08    阅读次数:311
将Unity中的世界坐标转换成NGUI中的坐标
将Unity中的世界坐标转换成NGUI中的坐标,比如可用于自制血条等。代码如下: 1 using UnityEngine; 2 using System.Collections; 3 public class Healthbar : MonoBehaviour { 4 public Game...
分类:其他好文   时间:2014-08-14 08:14:58    阅读次数:435
POj 1753--Flip Game--位运算+BFS
Flip Game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 30669   Accepted: 13345 Description Flip game is played on a rectangular 4x4 field with two-sided p...
分类:其他好文   时间:2014-08-14 01:34:17    阅读次数:351
Java---内存分析
局部变量在stack(栈)中分配内存;使用new关键字构造出来的对象在heap(堆)中分配内存;静态变量和字符串常量在Data Segment(数据区)分配内存。class Cat{static int sid=0;int id;String name;}Cat cat=new Cat();Stri...
分类:编程语言   时间:2014-08-14 00:55:37    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!