| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159448 | Kevin | 单词翻转 | C++ | Presentation Error | 1 MS | 276 KB | 316 | 2026-08-31 15:12:23 |
#include<bits/stdc++.h> using namespace std; int main(){ string a,b; int flag=0; while(cin>>a){ flag++; int len=a.size(); if(flag==1){ for(int i=len-1;i>=0;i--){ cout<<a[i]; } } else{ cout<<" "; for(int i=len-1;i>=0;i--){ cout<<a[i]; } } } return 0; }