using System;
using static System.Console;
namespace baekjoon
{
class MainApp
{
static void Main()
{
int inputA = int.Parse(ReadLine());
int[] nums = new int[inputA];
string[] inputB = ReadLine().Split();
for (int i = 0; i < nums.Length; i++) {
nums[i] = int.Parse(inputB[i]);
}
Array.Sort(nums);
Write($"{nums[0]} {nums[inputA-1]}");
}
}
}
운영중인 카톡방입니다.
https://open.kakao.com/o/gsMhUFie
'백준' 카테고리의 다른 글
c# 백준 2577번: 숫자의 개수 (0) | 2022.04.18 |
---|---|
c# 백준 2562번: 최댓값 (0) | 2022.04.18 |
백준 c# 1110번 (0) | 2022.04.15 |
백준 C# [10951] [A+B - 4] (0) | 2022.04.15 |
백준 10952번 A+B - 5 c# (0) | 2022.04.15 |
댓글