题解 | #句子逆序#
句子逆序
https://www.nowcoder.com/practice/48b3cb4e3c694d9da5526e6255bb73c3
#include <stdio.h> #include <string.h> #define N 1010 char s[N][N]; int main() { int n = 0; while (scanf("%s", s[n]) != EOF) n ++ ; for (int i = n - 1; i >= 0; i -- ) printf("%s ", s[i]); return 0; }