重写的TextView
package com.glory.room.view;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphic...
分类:
移动开发 时间:
2015-01-19 14:24:26
阅读次数:
219
package com.fxr.生成随机图片;import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.awt.image.BufferedImage;import java.io.File;imp...
分类:
编程语言 时间:
2015-01-19 00:11:22
阅读次数:
247
计算机编程基础之深入理解计算机系统1目录概述——《深入理解计算机系统》计算机系统漫游信息的表示和处理概述——《深入理解计算机系统》Computer Systems A Programmers Perspective 英文译名计算机系统漫游本章简介当系统上执行hello程序时,系统发生了什么以及为什么...
分类:
其他好文 时间:
2015-01-18 13:06:45
阅读次数:
185
Strategic Game
Time Limit:10000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Bob enjoys playing computer games, especially strategic games, bu...
分类:
其他好文 时间:
2015-01-18 11:52:24
阅读次数:
144
两次DFS,先从下往上搜一次,记录每个点到子树的最长距离与次长距离。次长距离的目的是如果在第二次更新的时候,最长距离与该子节点的方向是同一个方向,那就不能用这个最长距离了,只能用次长距离来更新。那么第二次dfs就是来从上往下来更新状态的。
代码如下:
#include
#include
#include
#include
#include
#include
#include
#i...
分类:
其他好文 时间:
2015-01-18 11:51:14
阅读次数:
160
Computer
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
A school bought the first computer some time ago(so this computer's id i...
分类:
其他好文 时间:
2015-01-18 09:18:01
阅读次数:
182
题目大意:每台新电脑都与某一台原电脑相连有一个长度,求每台电脑相距其最远的电脑的距离这里因为第一台电脑是最初的,所以可以将第一台电脑作为树根,其他电脑分布就可以形成一棵树这里距离有两种,一种是往树底找,一种是往父节点方向走第一次dfs记录下每个节点往子节点方向找到其树底的最长距离,第二次dfs记录每...
分类:
其他好文 时间:
2015-01-17 13:50:59
阅读次数:
132
对shader的认知:shader是什么?In Direct3D 11, shaders reside in different stages of the graphics pipeline. They are short programs that,executed by the GPU, ta...
分类:
其他好文 时间:
2015-01-16 23:49:39
阅读次数:
246
大家做高性能计算的朋友,想必对CPU的执行模式已经非常熟悉了吧。当代高级些的CPU一般采用超标量流水线,使得毗邻几条相互独立的指令能够并行执行——这称为指令集并行(ILP,Instruction-Level Parallelism);而像x86引入的SSE(Streaming SIMD Extens...
分类:
其他好文 时间:
2015-01-16 18:55:43
阅读次数:
178
Here is a list of books which I have read and feel it is worth recommending to friends who are interested in computer science.Machine LearningPattern ...
分类:
其他好文 时间:
2015-01-16 18:31:46
阅读次数:
221