Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
14905 王子策 反转字符串 C++ Accepted 3 MS 704 KB 227 2021-07-08 20:13:55

Tests(10/10):


Code:

#include <iostream> #include <cstring> using namespace std; int main() { char a[105]; gets(a); int x = strlen(a); char *p = a; p = a + x - 1; for (int i = x - 1; i >= 0; i--) { cout << *p--; } return 0; }