牛客798204514号
牛客798204514号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客798204514号的博客
全部文章
/ 题解
(共1篇)
使用vector容器
使用vector容器的做法,排序后直接返回容器中第一个元素v.front()和容器中最后一个元素v.back(),即为三个数中的最大值和最小值 #include<iostream> #include<vector> #include<algorithm> usin...
C++
2024-12-01
1
40