题解 | #字符串反转#
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
#include <stdio.h> #include<string.h> int main(void) { char a[2000]; while (scanf("%s", a) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf("%lld") to for(int i=strlen(a)-1;i>=0;i--){ printf("%c", a[i]); } } return 0; }