Light 1348 - Aladdin and the Return Journey
题目链接
树链剖分基础题,注意一个坑点,就是下标按0开始的话按我的写法是会错的,因为son初值赋成0了,要么改一下son初值,要么把下标都+1
代码:
#include
#include
#include
#include
using namespace std;
const ...
分类:
其他好文 时间:
2014-10-01 02:34:00
阅读次数:
212
第二类斯特林数 n 匹马 分成1 2 3... n组 每一组就是相同排名 没有先后 然后组与组之间是有顺序的 在乘以组数的阶乘
#include
#include
using namespace std;
int dp[1010][1010];
int a[1010];
int main()
{
a[0] = 1;
dp[0][0] = 1;
for(int i = 1; i <= 1...
分类:
其他好文 时间:
2014-09-28 00:08:41
阅读次数:
182
1004 - Monkey Banana Problem
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
You are in the world of mathematics to solve the great...
分类:
其他好文 时间:
2014-09-26 02:20:30
阅读次数:
382
出现这种情况可有2种方法解决:
1方案:clean项目,可能解决问题
2方案:1方案未解决问题,android 版本过低,右键你的项目->Properties->Android ,选择API level 11 ,或者更高的,同时添加appcompat_v7库...
分类:
移动开发 时间:
2014-09-24 16:18:27
阅读次数:
298
1.下载快钱的demo代码和一个证书包,还有人民币网关自助接入接口文档2.生成自己的证书2.0.安装Win32OpenSSL_Light-0_9_8k.exe打开openssl.exe,2.1.输入genrsa-outprivate-rsa.key1024,按enter即可。2.2输入req-new-x509-keyprivate-rsa.key-days750-outpublic-rsa.cer,按ente..
分类:
其他好文 时间:
2014-09-18 16:52:34
阅读次数:
2180
【RampTexture】 RampTexture(渐变纹理),可以是1D/2D纹理. This allows you to accentuate the surface's colors to fake the effects of more bounce light or a more ad.....
分类:
其他好文 时间:
2014-09-18 13:04:43
阅读次数:
250
【Half Lambert】 Half Lambert was a technique created by Valve as a way of getting the lighting to show the surface of an object in low-light areas. It....
分类:
其他好文 时间:
2014-09-18 13:03:03
阅读次数:
200
前言 在我之前的文章 Unity 2D Sprite Lighting ,讲到在2D Sprite中可以使用灯光,非常高兴的是,在Unity的新UI系统中我们也可以使用灯光 步骤 1、创建一个Panel,默认是没有材质的 2、为Panel选择 Default-Diffuse 材质 3、选择完材质之后...
分类:
其他好文 时间:
2014-09-15 15:48:09
阅读次数:
195
These industries include aerospace, manufacturing, and chemical market industries. This includes guidance on regulations, how to inspect the vehicle a...
分类:
其他好文 时间:
2014-09-15 10:01:38
阅读次数:
230
题目:有一个人负责开关走廊中的电灯泡。每个灯泡有他自己的开关。也就是说你按下某个灯泡的 开关,灯泡就亮了。下一次你再按这个开关,这个灯泡就熄了。这个工友有个古怪的习惯,假如走廊有n个灯泡(编号从1到n),他会来回走上n趟。在第 i 趟开始走过去的时候,他会开关灯泡编号可以被 i 除尽的灯泡,在回来的时候不做任何事。 现在你的任务就是要算出在走完n趟之后,最后一个电灯泡(编号n)是亮着的还是暗着的。...
分类:
其他好文 时间:
2014-09-13 17:19:05
阅读次数:
101