| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 3764 | 未知用户 | 字符串反转 | C++ | Wrong Answer | 0 | 0 MS | 188 KB | 285 | 2019-12-21 20:02:38 |
#include <stdio.h> #include <string.h> int main(){ char str1[1000]; gets(str1); int len_str=strlen(str1); char tmp;//注意是字符串 for(int i=0;i<len_str/2;i++){ tmp=str1[i]; str1[i]=str1[len_str-1-i]; str1[len_str-1-i]=tmp; } puts(str1); return 0; }