简单,直观的解法 摘要:前一个和后一个一直比较大小,每次保存最大的值。 ```c #include #define max(a,b) (a>b?a:b) int main(){ int n,num,res=…… 题解列表 2022年10月03日 1 点赞 0 评论 885 浏览 评分:9.7