文章

66

粉丝

0

获赞

40

访问

2.3k

头像
字符串翻转 题解:
P1006 贵州大学机试题
发布于2026年1月28日 13:19
阅读数 71

#include<bits/stdc++.h>
using namespace std;
int main(){
	string str;
	while(cin >> str){
		reverse(str.begin(),str.end());
		cout << str << endl;
	}
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发