文章

56

粉丝

0

获赞

82

访问

13.8k

头像
字符串翻转 题解:C++
P1006 贵州大学机试题
发布于2025年9月2日 18:38
阅读数 179

#include<bits/stdc++.h>
using namespace std;

int main(){
	string s;
	cin>>s;
	for(int i=s.length()-1;i>=0;i--){
		cout<<s[i];
	}
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发