# include
# include
using namespace std;
int main()
{
int n,m,i,sum,cot,flag,j;
int map[80040];
int a[40010];
int ans1;
int ans2;
while(~scanf("%d%d",&n,&m))
{
ans1=ans2=40010;
memset(map...
分类:
其他好文 时间:
2014-08-04 14:33:47
阅读次数:
180
路由器破解密码的过程 1、重启路由器,立即按ctrl+break,直到出现rommon1>,此模式就是 监控模式 2、修改寄存器的值,防止它在启动的时候去NVRAM中寻找配置文件,并将其加入内存中 rommon 2 > confreg 0x2142 3、继续重启,此时发...
分类:
其他好文 时间:
2014-08-04 13:59:17
阅读次数:
207
知识点:逻辑表达式的灵活运用法1:switch()的用法,注意字符用 case 'a': ……;break; 数字用 case 6:……;break;不要忘了break;法2:if……else 的用法注意是否是闰年的算法内容: 打印某年某月有几天输入说明:一行两个整数,前面是年份 后面是月份输出说明...
分类:
其他好文 时间:
2014-08-04 13:53:37
阅读次数:
267
我们知道,函数、类会改变当前变量的作用域。if,while等分支循环结构会继承外部作用域,即外部变量对分支循环结构内部可见。但是C语言不支持if,while等分支循环结构内部作用域对外可见,而PHP则不然。在PHP中,if,while等分支循环结构中声明的局部变量,在分支循环结构后面仍然有效。比如,...
分类:
其他好文 时间:
2014-08-04 13:30:07
阅读次数:
265
#include "windows.h"
#define UINT8 unsigned char
/* 该函数构造一个简单的溢出函数 */
void GetName(UINT8 *pucSrcName, UINT8 *pucDstName)
{
while ((*pucSrcName) != 0xfe)
{
*pucDstName++ = *p...
分类:
其他好文 时间:
2014-08-04 11:06:07
阅读次数:
262
js 中跳出循环用break,结束本次循环用continue,jquery 中each循环 跳出用return true,或者return false,下面的代码的本意是输入组名查找组id,如果没有找到返回'nofind',在实际执行过程中,当找到组id的时候,执行了 return n.PLM_ID...
分类:
Web程序 时间:
2014-08-04 10:28:46
阅读次数:
221
/*#includeusing namespace std;int main(){ int n; while (cin >> n){ if (n == 0) break; else if (n > 0 && n > f[i]; max = min = f[0]; for (int i =...
分类:
其他好文 时间:
2014-08-03 23:05:46
阅读次数:
320
//使用数组queue[ ]存放结点队列void BFS( ) { head=0; tail=1; queue[head]=首结点的值; while (head<tail) //队列不空 { temp=tail; for (k=head; k<=ta...
分类:
其他好文 时间:
2014-08-03 23:03:16
阅读次数:
250
#include#includeusing namespace std;int main(){ string s; while(cin>>s) { int i,begin,end,total = s.size(),l = s.size(); for(i ...
分类:
其他好文 时间:
2014-08-03 23:00:36
阅读次数:
188
Description
LogLoader, Inc. is a company specialized in providing products for analyzing logs. While Ikki is working on graduation design, he is also engaged in an internship at LogLoader. Among ...
分类:
其他好文 时间:
2014-08-03 20:37:35
阅读次数:
275