- 婚礼上的小杉
- 2017-05-17 16:43:27 @
#include<stdio.h>
int main()
{
char a[1002][300];
int b[1001];
char c;
int i=0, j, k;
do {
scanf("%d", &k);
b[i++] = k;
} while ((c = getchar()) != '\n'); //读取序号
for (j = 0; j < i; j++) //读取特征码
scanf("%s", a[b[j]]);
for (j = 1; j <= i; j++)
printf("%s\n", a[j]);
return 0;
}
2 条评论
-
q234rty LV 10 @ 2017-05-17 20:28:25
其实这是@iceboy的锅
-
2017-05-17 19:37:30@
明白了...把\n换成\r就AC了....
- 1