Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
41161 | jiabokai | 字符串 | C++ | Wrong Answer | 0 MS | 256 KB | 256 | 2024-02-20 09:02:41 |
#include<bits/stdc++.h> using namespace std; int main() { char s[20]; scanf("%s",s); for(int i=strlen(s)-1;i>=0;i--){ printf("%c ",s[i]); } string s1; cin>>s1; for(int i=(s1.size()-1);i>=0;i++){ cout<<s1[i]<<" "; } return 0; }