码迷,mamicode.com
首页 >  
搜索关键字:blue    ( 1833个结果
JAVA enum与int的转换——转载
转自:http://blog.csdn.net/liranke/article/details/22751453作者:langya2007对于:enum Color {RED,BLUE,BLACK YELLOW,GREEN}; (1) ordinal()方法: 返回枚举值在枚举类种的顺序。这个顺.....
分类:编程语言   时间:2015-01-29 01:24:14    阅读次数:255
[C++]LeetCode: 127 Sort Colors (计数排序 & 快速排序)
题目: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the in...
分类:编程语言   时间:2015-01-27 15:06:38    阅读次数:145
一款基于css3的3D图片翻页切换特效
今天给大家分享一款基于css3的3D图片翻页切换特效。单击图片下方的滑块会切换上方的图片。动起你的鼠标试试吧,效果图如下:在线预览源码下载实现的代码。html代码: Bedouin Blue-green Dramat...
分类:Web程序   时间:2015-01-27 09:15:58    阅读次数:161
java基础篇---枚举详解
在JDK1.5之前,JAVA可以有两种方式定义新类型:类和接口,对于大部分面向对象编程,有这两种似乎就足够了,但是在一些特殊情况就不合 适。例如:想要定义一个Color类,它只能有Red,Green,Blue三种,其他值则是错误,在JDK1.5之后便引入枚举类型。枚举其实就是一种类型,跟int, c...
分类:编程语言   时间:2015-01-26 11:44:14    阅读次数:188
leetcode 【 Sort Colors 】python 实现
题目:Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red,...
分类:编程语言   时间:2015-01-24 19:58:37    阅读次数:213
【字符矩阵哈希】【二分答案】【哈希表】bzoj1567 [JSOI2008]Blue Mary的战役地图
引用题解:http://hzwer.com/5153.html当然,二分可以换成哈希表。#include#include#includeusing namespace std;#define MOD 2501typedef unsigned long long ull;const ull seed1...
分类:Web程序   时间:2015-01-24 12:54:44    阅读次数:207
Android之背景透明度
一、ARGB来控制 ARGB中,颜色和不透明度 (alpha) 值以十六进表示,表达式顺序是“aabbggrr”。其中aa=alpha(00 到 ff);bb=blue(00 到 ff);gg=green(00 到 ff);rr=red(00 到 ff)。 对于 alpha,00 表示完全透明,.....
分类:移动开发   时间:2015-01-23 15:54:46    阅读次数:169
POJ 3715 Blue and Red 二分图
说是有一个军事演习 n个士兵,其中有m个关系表示某两个人是好友 现在士兵已经分好了两组了,用来进行对抗,但是这两组之间可能有好友,会影响军事演习的情况 所以要去掉尽量少的人,使得这个两组之间没有好友。 那么题目给了一个分组方案了,  但是不同组之间可能有好友, 我们就要在这些个不同组的好友之间  连边然后求二分图最大匹配, 求出来的结果就是要去掉的人数 但是题目又要求字典序要...
分类:其他好文   时间:2015-01-23 00:46:14    阅读次数:220
css实现背景透明,文字不透明,兼容所有浏览器
实现透明的css方法通常有以下3种方式,以下是不透明度都为80%的写法css3的opacity:x,x 的取值从 0 到 1,如opacity: 0.8css3的rgba(red, green, blue, alpha),alpha的取值从 0 到 1,如rgba(255,255,255,0.8)I...
分类:Web程序   时间:2015-01-21 22:13:22    阅读次数:215
RGB to HSI, HSI to RGB Conversion Calculator
The RGB color model is an additive system in which each color is defined by the amount of red, green, and blue light emitted. In the RGB scheme, color...
分类:其他好文   时间:2015-01-20 23:53:32    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!