给定若干长度,先排序,再输出最短和最长。
第一行输入一个整数 nnn。 第二行输入 nnn 个整数。
输出两个整数。
1≤n≤100,长度绝对值不超过109^99
3 3 1 2
1 3
使用您的 www.mathcoding.online 通用账户