B-1009
来源:互联网 发布:mysql重置初始密码 编辑:程序博客网 时间:2024/06/01 09:37
#include<cstdio>#include<vector>#include<string>#include<string.h>#include<iostream>using namespace std;vector<string> V;int size = 0;char s[90];int main(){ while(gets(s)){ int len = strlen(s); string str = ""; for(int i = 0; i < len; i++){ if(s[i]!=' ') str+=s[i]; else{ //cout<<str<<endl; V.push_back(str); size++; str = ""; } } V.push_back(str); size++; int first = 0; for(int i = size-1; i >= 0; i--){ if(first==0){ cout<<V[i]; first = 1; } else cout<<" "<<V[i]; } cout<<endl; } return 0;}
阅读全文
0 0
- B-1009
- b
- b
- b
- //b
- B
- b
- B
- B
- B
- B
- b
- B
- B
- B
- B
- B
- B
- 不吉利的数字
- 嵌入式C语言模块化编程
- [iOS 通过class-dump] 逆向出方法名/属性列表
- Kafka AdminClient 管理Kafka Offset代码实现
- Android Studio中多项目共享Library
- B-1009
- android SharedPreferences 存储异常
- ubuntu14.04安装GPU驱动、CUDA8.0、cudnn5、anaconda、tensorflow(GPU)
- windows10 python3.5 opencv3
- c++ getdtablesize()
- Java 8 中的 Streams API 详解
- 在主方法中创建String型变量,并将字符变量进行分割,将分割后的结果输出
- 关于Spring中为静态static的@Resource自动注入失败的问题
- Jackson常用方法以及jacksonUtil工具类