1 #include 2 #include 3 4 int mylen(char *s) 5 { 6 //数组型 7 // int cnt = 0; 8 // while(s[cnt] != '\0') { 9 // cnt++;10 // }11 ...
分类:
其他好文 时间:
2014-08-01 15:22:11
阅读次数:
190
/*
循环多少次?
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 2839 Accepted Submission(s): 1028
Problem Description
我们知道,在编程中,我们时常需要考虑到...
分类:
其他好文 时间:
2014-08-01 00:05:50
阅读次数:
258
/*
hdu 1999 不可摸数
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 8274 Accepted Submission(s): 2122
Problem Description
s(n)是正整数n的真因子之和,...
分类:
其他好文 时间:
2014-07-31 13:22:06
阅读次数:
239
//参数过滤$sVariablesOrder=ini_get(‘variables_order‘);$request=array();//过滤不安全数据for($i=0;$i<strlen($sVariablesOrder);$i++){$cVariableFlat=strtolower($sVariablesOrder[$i]);switch($cVariableFlat){case‘e‘:$filtered=filter_input_array(INPUT_ENV,FILTER..
分类:
Web程序 时间:
2014-07-31 03:14:16
阅读次数:
275
/*
A + B Problem II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 209912 Accepted Submission(s): 40404
Problem Description
I have a...
分类:
其他好文 时间:
2014-07-30 17:32:24
阅读次数:
226
/*
The Hardest Problem Ever
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 15859 Accepted Submission(s): 7331
Problem Description
Ju...
分类:
其他好文 时间:
2014-07-30 10:08:23
阅读次数:
371
例1:char ss[100]=”0123456789”; Sizeof(ss)结果为100,ss表示在内存中预分配的大小,100*1; Strlent(ss)结果为10,它的内部实现是用一个循环计算字符串的长度,直到”\0”为止。例2:int ss[100]=”0123456789”; Sizeo...
分类:
其他好文 时间:
2014-07-29 17:03:02
阅读次数:
205
chara[100];char*p=a;printf("pleaseenter<100zifchuan:\n");for(inti=0;i<100;i++){scanf("%c",(p+i));if(*(p+i)==‘\n‘){*(p+i)=‘\0‘;break;}}unsignedlongleng=strlen(a);printf("原字符串:\n%s\n",a);for(intk=0;k<leng;k++){for(inti=0;i<leng;i++){if(*(p+i)&..
分类:
其他好文 时间:
2014-07-29 15:42:49
阅读次数:
187
/*
Easier Done Than Said?
Problem DescriptionPassword security is a tricky thing. Users prefer simple passwords
that are easy to remember (like buddy), but such passwords are often insecure. Some...
分类:
其他好文 时间:
2014-07-29 14:40:28
阅读次数:
288
/*
Easier Done Than Said?
Problem DescriptionPassword security is a tricky thing. Users prefer simple passwords
that are easy to remember (like buddy), but such passwords are often insecure. Some...
分类:
其他好文 时间:
2014-07-29 14:39:48
阅读次数:
302