program bzoj1015;{$inline on}const maxn=400001;type node=record togo,next:longint;end;var tot,n,m,d,cnt:longint; father,head,q,ans:array [0..max...
分类:
其他好文 时间:
2014-10-27 19:06:29
阅读次数:
162
program bzoj1828;const maxn=100001; check=10000000; type node=record l,r,s,a:longint;end;var t:array [0..maxn*5] of node; a,b,c:array [0.....
分类:
其他好文 时间:
2014-10-27 18:58:21
阅读次数:
233
解决方案1:
type?point?=?^node;
?node?=?record
?i:longint;
?n:point;
?end;
var?i,j,k,n,m,a,b,top:longint;
?map:array[1..10000]of?point;
?ans:array[1..10000]of?longint;
?stack,i...
分类:
编程语言 时间:
2014-10-27 15:52:51
阅读次数:
148
需要额外添加两个相距为n的节点,遍历一遍之后就可以得到结果。/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(in...
分类:
其他好文 时间:
2014-10-27 00:21:55
阅读次数:
275
create function fun_A() #标题函数、create function fun_name() returns output_type as begin return value end;returns intasbegin return 1;endgocreate functi....
分类:
数据库 时间:
2014-10-26 21:07:18
阅读次数:
265
function re=biaoji(j,biao) %判断j点是否已被标记 l=length(biao); for i=1:l if j==biao(i) re=1; return; end end re...
分类:
其他好文 时间:
2014-10-26 19:35:05
阅读次数:
131
Front-end Job Interview QuestionsThis repo contains a number of front-end interview questions that can be used when vetting potential candidates. It i...
分类:
其他好文 时间:
2014-10-26 18:24:28
阅读次数:
354
二分查找int binary_search(int a[],int len,int goal){ int beg = 0; int end = len - 1; while(beg goal) end = middle - 1; else ...
分类:
编程语言 时间:
2014-10-26 18:17:20
阅读次数:
145
字符串逆转void reverse(char* str,int beg,int end){ int times = (end- beg +1)/2; while(times > 0) { char tmp = str[end]; str[end--] =...
分类:
编程语言 时间:
2014-10-26 16:52:45
阅读次数:
114
内容:一:简单介绍二:安装及配置三:应用四:综述參考资料关于作者 相关内容: TCP/IP 介绍 TCP/IP 介绍 !== End...
分类:
其他好文 时间:
2014-10-26 16:51:24
阅读次数:
242