Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93553 胡海峰老师 C语言7.12 C Accepted 1 MS 200 KB 362 2024-10-17 21:05:29

Tests(1/1):


Code:

//1079 逆序后的数组#include <stdio.h> int a[60]={0}; #include <stdio.h> main() { int n; scanf("%d",&n); for(int i=1;i<=n;i++) scanf("%d",&a[i]); for(int i=n;i>=1;i--) { printf("%d ",a[i]); } return 0; } /* Examples Input 10 1 2 3 4 5 6 7 9 10 11 Output 11 10 9 7 6 5 4 3 2 1 */