/*
题目意思很简单,但是要注意空格
思路:
1、遍历一遍即把字符输出,所以需要计数器count(代表需要转置的起始位置),
i用于表示转置的结束位置
2、对于空格要特殊处理;
*/
# include
# include
int main(void)
{
int n;
char str[50];
while(scanf("%d",&n) != EOF)
{
getchar()...
分类:
其他好文 时间:
2015-03-04 17:04:08
阅读次数:
151
#!/bin/sh
#
#nginx-thisscriptstartsandstopsthenginxdaemon
#
#chkconfig:-8515
#description:NginxisanHTTP(S)server,HTTP(S)reverse#proxyandIMAP/POP3proxyserver
#processname:nginx
#config:/etc/nginx/nginx.conf
#config:/etc/sysconfig/nginx
#pidfile:/var/run/ng..
分类:
其他好文 时间:
2015-03-03 18:56:34
阅读次数:
145
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-03-03 18:15:30
阅读次数:
130
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2015-03-03 14:57:57
阅读次数:
165
#You?are?given?two?linked?lists?representing?two?non-negative?numbers.?The?digits?are?stored?in
#reverse?order?and?each?of?their?nodes?contain?a?single?digit.?Add?the?two...
分类:
其他好文 时间:
2015-03-03 13:46:26
阅读次数:
154
1 题目Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Update (2015-02-12):For C ...
分类:
其他好文 时间:
2015-03-02 20:53:41
阅读次数:
162
Emag eht htiw Em PlehTime Limit:1000MSMemory Limit:65536KTotal Submissions:2901Accepted:1917DescriptionThis problem is a reverse case of theproblem 29...
分类:
其他好文 时间:
2015-03-01 14:22:57
阅读次数:
159
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2015-03-01 10:25:17
阅读次数:
122
Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.The input string does not contain lead...
分类:
其他好文 时间:
2015-03-01 08:54:48
阅读次数:
160
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a pr...
分类:
其他好文 时间:
2015-02-28 21:46:29
阅读次数:
187