文章

246

粉丝

0

获赞

1165

访问

51.7k

头像
反序输出 题解:
P1155 清华大学上机题
发布于2026年3月7日 11:22
阅读数 127

#include<iostream>
#include<algorithm>
using namespace std;

string str;

int main()
{
	while(cin>>str)
	{
		reverse(str.begin(),str.end());
		cout<<str<<endl;
	}
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发