Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150885 李明秦 反转字符串 C++ Accepted 1 MS 268 KB 222 2026-04-02 09:34:07

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char *s=new char[101]; memset(s,0,sizeof(char)*101); gets(s); int l=strlen(s); for(int i=l-1;i>=0;i--){ cout<<s[i]; } delete []s; return 0; }