全WA求解
查看原帖
全WA求解
1073122
Accept__楼主2024/4/18 22:43
#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
    while(cin>>s)
    {
    	for(int i=s.size();i>=0;i--)
	    {
	    	if(s[i]!=' ')
	    	{
	    		cout<<s[i];
			}
		}
		cout<<endl;
	}
    return 0;
}
2024/4/18 22:43
加载中...