본문 바로가기
백준

c# 백준 10818번

by O_x 2022. 4. 17.

 

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/C++/C# 언리얼/유니티 /질문

#C++#C#언리얼#게임개발#질문#개발#자료구조#백준#프로그래머스#c#유니티#unity#enreal

open.kakao.com

 

'백준' 카테고리의 다른 글

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

댓글