洛谷P5705

题目回顾
image
对于该题,主要考虑将数据存入数组,然后遍历数组且打印,注意,对于遍历的初值应是(len - 1),数组最后一位不能用
AC码如下
image

posted @ 2025-11-08 10:53  WDZ123  阅读(1)  评论(0)    收藏  举报