#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ /*给你m个整数,将其逆序输出 输入 第一行一个整数m(3 <= m <= 100 ):数的个数 第二行m个整数(空格隔开)(这些数在0-9999999之间) 输出 m个整数(空格隔开*/ void main(int argc, char *argv[]) { int a[100]; int m,i; scanf("%d",&m); for(i=0;i<m;i++){ scanf("%d",&a[i]); } for(i=m-1;i>=0;i--){ printf("%d ",a[i]); } return 0; } /************************************************************** Problem: 1009 User: admin Language: C Result: Accepted Time:9 ms Memory:1144 kb ****************************************************************/