OJ-Problems-Source/CodeVS/1205_冰封.c

23 lines
377 B
C
Raw Normal View History

2016-07-06 14:28:18 +08:00
/*
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:ǧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>Ŀ:p1205 <EFBFBD><EFBFBD><EFBFBD>ʷ<EFBFBD>ת
*/
#include <stdio.h>
#include <string.h>
int main(int argc, char* argv[]) {
char a[50][1000], i = 0;
while(scanf("%s", a[i++]) != EOF);
// for(i = 0; i < strlen(a) / 2; i++){
// char s;
// s = a[strlen(a) - i - 1];
// a[strlen(a) - i - 1] = a[i];
// a[i] = s;
// }
i--;
while(i--)
printf("%s ", a[i]);
return 0;
}