Classic
Clean & simple
Crystal
Glassmorphism + Neon
Cyberpunk
Neon glitch art
🚫
违规Action检测
禁止Use右键菜单
⚠️ 此Action已被系统记录
1

求最值

📝 Solutions 🔵 仅限 C++
Problems Description
设计一items从mitems整数中取最小数和最大数的程序
Input格式
<p> Page 一行输入一items整数n(0&lt;n&lt;=100000),表示有n组数据; </p> <p> 随后n组数据中,每组数据输入一items整数m(0&lt;m&lt;=100),代表该组数据items数,其后一行输入mitems整数,空格points隔。 </p> <p> &nbsp; </p>
Output格式
输出两items数,Page 一items为这mitems数中的最小值,Page 二items为这五items数中的最大值,两items数字以空格格开。
Sample
Sample Input 1
3 2 1 2 3 4 5 6 5 1 5 9 3 7
Sample Output 1
1 2 4 6 1 9
Submit Code
请先Login后Submit

🤖 AI 解题助手

OpenRouter
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这problems题,可以帮你points析思路、提供Code示例。
🔓 完全Free · 无需消耗 Token