Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131724 魏宏搏 反转字符串 C++ Accepted 2 MS 264 KB 206 2025-10-01 11:10:34

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[105]; char b[105]; int main(){ cin.getline(a,105); int len=strlen(a); for(int i=0;i<len;i++){ b[i]=a[len-1-i]; } cout<<b; return 0; }