题解 | KY109

Zero-complexity Transposition

https://www.nowcoder.com/practice/c54775799f634c72b447ef31eb36e975?tpId=40&tqId=21440&rp=1&ru=/ta/kaoyan&qru=/ta/kaoyan&difficulty=2&judgeStatus=3&tags=/question-ranking

#include <iostream>
using namespace std;
#define N 10000
struct s{
	string str;
};
int main(){
	int n;
	while(cin >>n){
		int i;
		struct s st[N];
		for (i = 0; i <n;i++){
			cin >> st[i].str;
		}
		for (i = n-1; i >=0;i--){
			cout <<st[i].str<<" ";
		}
	}
	
}

全部评论

相关推荐

后端转测开第一人:双非本 没大厂实习 后端肯定没机会了 直接转测开吧
点赞 评论 收藏
分享
09-09 16:12
已编辑
西南石油大学 Java
future0210:学java就是好啊,啥都能转
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务