Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154558 万骏博 反转字符串 C++ Accepted 2 MS 272 KB 175 2026-05-30 17:11:11

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; string s; int b=0; int main(){ getline(cin,s); int a=s.size(); char*p=&s[0]; reverse(p,p+a); cout<<s; return 0; }