#include<stdio.h>#include<conio.h>voidproc(char*str){while(*str!=‘\0‘)str++;//将指针移到最后一位str--;while(*str==‘*‘)str--;*(str+1)=‘\0‘;//添加结束符}voidmain(){chars[17]={"****asd***fff***"};puts(s);printf("\n");proc(s);puts(s);}
分类:
编程语言 时间:
2014-09-09 13:50:39
阅读次数:
263
题目链接
题意:男为f,女为m,求在长度为L的队列中不存在fmf,fff这样子序列的序列的个数。
思路:又是递推题,假设长度为L的队列中存在的序列个数为f(L),那么考虑最后一个放的字母,假设最后一个放m,那么前L-1个可以随意排列,即个数为f(L - 1);如果最后一个放f,那么考虑后两个字母,可能出现的情况为ff,mf,这样比较难判断是否符合题目要求的,所以我们考虑后三...
分类:
其他好文 时间:
2014-09-03 16:55:27
阅读次数:
230
/*help*/.help{ position: relative; width: 130px; height: 130px; border: 6px #fff solid; border-radius: 50%; -webkit-animation: rotation 1s ease-in...
分类:
Web程序 时间:
2014-08-31 15:48:01
阅读次数:
520
/* Timer*/.timer{ width: 240px; height: 240px; background-color: transparent; box-shadow: inset 0px 0px 0px 2px #fff; border: 2px #f00 solid; border-r...
分类:
Web程序 时间:
2014-08-30 19:03:29
阅读次数:
4133
css.departmentheadpic {height:230px;width:auto;background-color:#fff;padding-top:2px;padding-bottom:2px; positio...
分类:
其他好文 时间:
2014-08-27 16:09:07
阅读次数:
186
题目一:[root@RE-01~]#catabc
1
aa
bbb
2
cc
ddd
3
ee
fff
4
gg
hhh通过shell命令变为1aabbb
2ccddd
3eefff
4gghhh实现命令:sed‘/[0-9]/N;s/\n//;/[a-z]/N;s/\n//;n;d‘abc题目二:[root@RE-01~]#catip.txt
172.16.1.102255.255.254.0
172.16.1.12255.255.252.0
172.16.1.2..
分类:
其他好文 时间:
2014-08-27 13:11:48
阅读次数:
255
1.[图片]捕获.jpg?2. [代码][CSS]代码 body { background: #000; overflow-y: scroll; } .items { margin: 40px auto; width: 1110px; } a { color: #FFF; cursor...
分类:
Web程序 时间:
2014-08-26 17:16:06
阅读次数:
371
关键部分的CSS代码:.menu ul { list-style-type: none; border-top: 10px solid gray;}.menu ul li a { color: #fff; float: left; margin: 0 5px; f...
分类:
Web程序 时间:
2014-08-25 20:56:24
阅读次数:
226
腾讯QQ官网(http://www.qq.com)样式初始化
body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select{margin:0;padding:0}
body{font:12px"宋体","Arial Narrow",HELVETICA;background:#fff...
分类:
Web程序 时间:
2014-08-22 17:58:19
阅读次数:
291
Oh My Holy FFF
Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)
Total Submission(s): 606 Accepted Submission(s): 141
Problem Description
N soldiers fr...
分类:
其他好文 时间:
2014-08-19 22:33:35
阅读次数:
346