HDU 1062 Text Reverse(水题)
来源:互联网 发布:c语言中const的用法 编辑:程序博客网 时间:2024/06/05 20:48
没事水一水。
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1062
<pre name="code" class="cpp">#include<stdio.h>#include<string.h>int main(){ int t; char s[1005]; scanf("%d",&t); getchar(); while(t--) { memset(s,0,sizeof(s)); gets(s); int l=strlen(s); int pos=0,q=0; for(int i=0; i<=l; i++) { if(s[i]==' '||i==l) { for(int j=i-1; j>=i-pos; j--) printf("%c",s[j]); if(s[i]==' ') printf(" "); pos=0; } else pos++; } printf("\n"); } return 0;}
1 0
- HDU 1062 Text Reverse(水题)
- hdu 1062 Text Reverse
- hdu 1062 Text Reverse
- HDU 1062 TEXT REVERSE
- Hdu 1062 - Text Reverse
- hdu 1062 Text Reverse
- HDU 1062 Text Reverse
- hdu 1062 Text Reverse
- HDU 1062 Text Reverse
- HDU 1062 - Text Reverse
- hdu 1062 Text Reverse
- hdu 1062 Text Reverse
- Text Reverse(hdu 1062)
- hdu 1062 Text Reverse
- HDU 1062 Text Reverse
- hdu 1062 text reverse
- HDU 1062 Text Reverse
- HDU 1062 Text Reverse
- 安卓获取IMSI,IMEI和版本,版本号
- 寒假刷题--并查集
- 常见的反爬虫和应对方法
- Java基础day13 StringBuffer类
- 简单而漂亮的登录页面。。。
- HDU 1062 Text Reverse(水题)
- vector::clear()和vecotr::pop_back()对内存处理的不同 http://blog.csdn.net/vieri_ch/article/details/1191390
- java初步学习之队列
- python网路爬虫
- 默然说话20160304
- Android获取Manifest中<meta-data>元素的值
- 偏颇之论——志不同道不合,节约对方的时间,就是最大的尊重。
- 数组名是一个指针常量吗?
- Hust oj 1812 小乐乐想出门(基础dp)