P2826 [USACO08NOV]光开关Light Switching 题目描述 Farmer John tries to keep the cows sharp by letting them play with intellectual toys. One of the larger toys ...
分类:
其他好文 时间:
2017-06-10 22:28:16
阅读次数:
317
specular_color = pow( v_e' * v_l, gloss ) * mat_specular * light_specular; 这里解释一下: v_e' 是e_v的反射向量(v_e' = reflect( e_v, n ) ), 而e_v是眼睛到该点的单位向量, 所谓反射向量,... ...
分类:
其他好文 时间:
2017-06-10 10:41:10
阅读次数:
176
《Physically-Based Shading Models in Film and Game Production》(SIGGRAPH 2010 Course Notes) (地址:http://renderwonk.com/publications/s2010-shading-course/ ...
分类:
其他好文 时间:
2017-06-07 10:11:00
阅读次数:
345
在计算机网络中,“交换”(switching)的含义就是转接——把一条电话线转接到还有一条电话线,是他们连通起来。 从通信资源的分配角度来看,“交换”就是依照某种方式动态地分配传输线路的资源。 在计算机网络中。“交换”又分为两类,各自是“电路交换”、“分组交换”、“报文交换”。这里暂不提报文交换。 ...
分类:
其他好文 时间:
2017-06-06 10:42:13
阅读次数:
143
1149 - Factors and Multiples PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB You will be given two sets of integers. Let's ...
分类:
其他好文 时间:
2017-06-04 11:44:44
阅读次数:
301
It's during our darkest moments that we must focus to see the light. 在最黑暗的时刻,最该努力看到光。 I always thought the past tens of years were the darkest moments ...
分类:
其他好文 时间:
2017-06-04 09:44:26
阅读次数:
152
题目链接:http://www.ifrog.cc/acm/problem/1121 官方题解: 对于每一次的操作,显然其周围的2k个灯不会有状态翻转,否则这次就是无效的,于是转换为简单的动态规划问题.令dp(i)表示将前i+k个灯全部点亮的最小花费,直接转移即可.复杂度为O(n)。 恩,然后就是dp ...
分类:
其他好文 时间:
2017-06-03 13:59:26
阅读次数:
176
?n个人 m个篮子 每一轮每一个人能够选m个篮子中一个扔球 扔中的概率都是p 求k轮后全部篮子里面球数量的期望值 依据全期望公式 进行一轮球数量的期望值为dp[1]*1+dp[2]*2+...+dp[n]*n 记为w 当中dp[i]为i个人扔中的概率 dp[i] = C(n, i)*p^i*(1-p ...
Lua下的方法。自己项目经验,个人见解,不能确保正确。 Sprite: local Light = CCSprite:create("light.png") Light:setPosition(ccp(300,300)) Light:setScale(1) Light:setVisible(true ...
分类:
其他好文 时间:
2017-06-03 09:52:13
阅读次数:
280
已经很久没有写系列文章了,上一次是2012年写的HTLM5系列,想想我们应该是较早一批使用HTML5做项目的人。 相比我当时动不动100+的粉丝增长和两天3000+的阅读量,MVVM Light只能算小众技术了,也是因为她小众,才更具意义,不希望有人跟我一样网上找案例找半天。 写的初衷也是希望同项目 ...
分类:
其他好文 时间:
2017-05-30 18:07:48
阅读次数:
230