ninininininini @ 2024-07-06 17:39:34
#include <cstdio>
using namespace std;
int main() {
char str[5];
int i = 1;
while ( true )
{
str[i]=getchar();
i++;
if(str[i-1]=='\n')
break;
}
for(int j=i-2;j>=1;j--)
{
putchar( str[j] );
}
return 0;
}
by _H17_ @ 2024-07-06 17:43:54
@ninininininini 谁告诉你最后又 \n
呢?