| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135688 | hjx1 | 字符串反转 | C++ | Output Limit Exceeded | 6 MS | 268 KB | 468 | 2025-11-08 11:26:27 |
#include <bits/stdc++.h> using namespace std; char a[1000]; int main() { int f,i,j,k,t; cin>>t; i=1; while (i<=t) { cin>>a; j=0; while (j<strlen(a)) { k=j; while (a[j]!=' ') j++; f=j+1; j--; while (j>=k) cout<<a[j--]; cout<<" "; j=f; } i++; } return 0; }