Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69563 李琥博 单词翻转 C++ Wrong Answer 1 MS 272 KB 391 2024-04-05 16:47:07

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); int n=s.size(); for(int i=0;i<n;i++){ if(s[i]<'a'||s[i]>'z'){ int a=i; for(int j=a-1;j>=0;j--){ cout<<s[j]; } cout<<s[i]; } } return 0; }


Run Info:

------Input------
123 45
------Answer-----
321 54
------Your output-----
112213321 32144 3215