HUSTOJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
1251: (2025)实验4-2-2 将数组中最大值替换为最小值
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:892
Solved:217
Submit
Submit Record
Statistics
ShowOff!
Description
将一组整数的最大值替换为它的最小值。输入任意个整数(可能有重复),用函数编程查找最大值和最小值,然后将最大值更新为最小值,最后在主函数中输出变换后的数组。
Sample Input
Copy
45 89 -2 8 100 100
Sample Output
Copy
45 89 -2 8 -2 -2
Source/Category
自编讲义
实验内容
实验4-2
Submit
Submit Record
Statistics
ShowOff!