B. Vika and SquaresVika hasnjars with paints of distinct colors. All the jars are numbered from1tonand thei-th jar containsailiters of paint of colori...
分类:
其他好文 时间:
2015-12-27 23:10:59
阅读次数:
265
1147. Shaping RegionsTime limit: 0.5 secondMemory limit: 64 MBNopaque rectangles (1 ≤N≤ 1000) of various colors are placed on a white sheet of paper w...
There is a fence with n posts, each post can be painted with one of the k colors.You have to paint all the posts such that no more than two adjacent f...
分类:
其他好文 时间:
2015-12-25 06:26:55
阅读次数:
194
题目一开始说到一组对象,包含红白蓝三种颜色,然后要对他们进行排序,说白了就是对一个只含有 0, 1, 2 三个数字的数组从小到大排序。...
分类:
其他好文 时间:
2015-12-25 01:17:03
阅读次数:
227
There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. Yo...
分类:
其他好文 时间:
2015-12-23 14:30:27
阅读次数:
393
给一个矩阵,里面有一些不同颜色的气球。每次能够消灭一行或一列中某一种颜色的气球,问你在k次及以内,有哪些颜色的气球是不管怎样也消不完的。那么思路就是,对每一种颜色的气球求最小点覆盖。>k 则为答案。相当于 poj3041 的加强版,由于矩阵中不是每个点都是等价的。#include#include#i...
分类:
其他好文 时间:
2015-12-22 10:21:56
阅读次数:
132
5.2.2 转换方法所有对象都有toString()和valueOf()方法调用数组的toString()方法,会返回一个字符串,由数组中的每个项通过逗号连接而成调用valueOf()还是返回数组var colors = ["red", "blue", "green"];console.log(co...
分类:
编程语言 时间:
2015-12-21 18:17:52
阅读次数:
239
特殊性数组的每一项可以保存任何类型的数据大小可以动态调整(即随着数据的添加而自动增长容量)length属性非只读!创建数组的基本方式//Array构造函数var colors = new Array();colors = new Array(20);//初始化数组容量colors = new Arr...
分类:
编程语言 时间:
2015-12-20 12:57:53
阅读次数:
218
活动状态非活动状态var titleBar = ApplicationView.GetForCurrentView().TitleBar; titleBar.BackgroundColor = Colors.Azure; titleBar.ForegroundColor...
提示:python版本为2.7,windows系统1.元组(Tuple) Tuple,与List类似,但是Tuple一旦初始化之后就不能修改了,没有增加、删除、修改元素。1 >>> colors = ('red', 'orange', 'yello')2 >>> colors3 ('red', '....
分类:
编程语言 时间:
2015-12-16 12:13:23
阅读次数:
195