题解 | #Zero-complexity#

Zero-complexity Transposition

https://www.nowcoder.com/practice/c54775799f634c72b447ef31eb36e975

#include <bits/stdc++.h>
using namespace std;
stack<long long> zhan;
int main() {
	int n = 0;
	while (scanf("%d", &n) != EOF) {
		for (int i = 0; i < n; i++)
		{
			long long int number = 0;
			scanf("%lld", &number);
			zhan.push(number);
		}
		for (int i = 0; i < n; i++)
		{
			cout << zhan.top() << " " ;
			zhan.pop();
		}
		printf("\n");
	}
	return 0;
}

全部评论

相关推荐

不愿透露姓名的神秘牛友
07-15 17:17
听说过付费实习,没想到这么贵啊我去,要不我给你个腰子吧
哈哈哈,你是老六:这种公司一定要注意啊,不要随便签合同,只要签了后面钱可能回不来,而且你通过法律途径也弄不回
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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