1 /* 2 题目大意:给一棵n个节点的树,求任意三个点两两无直系亲属关系的种数。 3 可以求反方向的,对于每个节点i使他选,他的一个子树中选一个,再在剩余的任意选一个。 4 */ 5 #pragma comment(linker, "/STACK:16777216") 6 #include 7.....
分类:
其他好文 时间:
2014-12-03 14:08:01
阅读次数:
151
#include #include #pragma comment(lib,"ws2_32.lib")void print_ip(int ip){ unsigned char bytes[4]; bytes[0] = ip & 0xFF; bytes[1] = (ip >> 8) & 0xFF; b...
分类:
其他好文 时间:
2014-12-03 11:52:27
阅读次数:
207
图像显示并转化为黑白输出到新文件code: 1 #include 2 #include 3 #include 4 5 #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) 6 7 usin...
分类:
其他好文 时间:
2014-12-03 00:03:50
阅读次数:
320
【Vertex color blending & UV tiling】1、GemotryData控件用于代码顶点数据,如网格中的Vertex Color(下左图),UV Coord(下右图)。 2、右击每一个控制,会弹出帮助选项,以及输入Comment的选项。 3、Shader Forge中...
分类:
其他好文 时间:
2014-12-01 22:03:58
阅读次数:
228
找每个点能转移出去的状态时要回溯到根去掉所有能转移的点来去重。。
可能这种做法在距离根距离较小的时候能用。。(隐隐感觉有bug,还是人云亦云地做掉先了。。)
#pragma comment(linker, "/STACK:1024000000,1024000000")
#include
#include
#include
#include
#include
#include ...
分类:
其他好文 时间:
2014-12-01 20:56:15
阅读次数:
199
客户端程序如下:
//Client.cpp
#include
#include
#include
#include
#pragma comment(lib,"ws2_32.lib")
int main(void)
{
WSADATA wsa;
/*struct WSAData
{
WORD wVersion;
WORD wHighVersion;
char s...
例《解析评论》//post方式请求String url=“http://product.dangdang.com/comment/comment.php?product_id=60569472&datatype=1&page=1&filtertype=1&sysfilter=1&sorttype=1...
分类:
编程语言 时间:
2014-11-27 12:37:43
阅读次数:
160
m位长度,S为各位的和利用贪心的思想逐位判断过去即可详细的注释已经在代码里啦~//#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #include #include #in...
分类:
其他好文 时间:
2014-11-26 18:35:55
阅读次数:
125
本文转载自: http://blog.jobbole.com/45296/#comment-78513 ------------------------我是分割线------------------------------------ 对于咱们这些高端大气、时刻需要和国际接轨的码农,英语的重要性自然...
分类:
其他好文 时间:
2014-11-26 16:21:33
阅读次数:
187
function arPro($data,$res=array(),$pid='0',$level='0'){ foreach ($data as $k => $v){ if($v['comment_parent']==$pid){ $res[$v['id']]['info']=$...
分类:
Web程序 时间:
2014-11-26 10:54:13
阅读次数:
205