알고리즘

C# 프로그래머스 [Level 1] _문제이름 출제 링크 : https://programmers.co.kr/learn/courses/30/lessons/12935 코딩테스트 연습 - 제일 작은 수 제거하기 정수를 저장한 배열, arr 에서 가장 작은 수를 제거한 배열을 리턴하는 함수, solution을 완성해주세요. 단, 리턴하려는 배열이 빈 배열인 경우엔 배열에 -1을 채워 리턴하세요. 예를들어 arr이 [4,3,2,1 programmers.co.kr
C# 프로그래머스 [Level 1] _문제이름 출제 링크 : https://programmers.co.kr/learn/courses/30/lessons/42840 코딩테스트 연습 - 모의고사 수포자는 수학을 포기한 사람의 준말입니다. 수포자 삼인방은 모의고사에 수학 문제를 전부 찍으려 합니다. 수포자는 1번 문제부터 마지막 문제까지 다음과 같이 찍습니다. 1번 수포자가 찍는 �� programmers.co.kr
출제 링크 : https://www.acmicpc.net/problem/2588 2588번: 곱셈 첫째 줄부터 넷째 줄까지 차례대로 (3), (4), (5), (6)에 들어갈 값을 출력한다. www.acmicpc.net 코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 using System; using static System.Console; namespace baekjoon { class Program { static void Main(string[] args) { string inputA = Console.ReadLine(); // 첫번째 입력 string inputB = Console.ReadLine(); // 두번째 ..
출제 링크 : https://www.acmicpc.net/problem/10430 10430번: 나머지 첫째 줄에 A, B, C가 순서대로 주어진다. (2 ≤ A, B, C ≤ 10000) www.acmicpc.net 코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 using System; using static System.Console; namespace baekjoon { class Program { static void Main(string[] args) { string input = ReadLine(); string[] arr_input = input.Split(); int a = int.Parse(arr_input[0]); int..
출제 링크 : https://www.acmicpc.net/problem/10998 10998번: A×B 두 정수 A와 B를 입력받은 다음, A×B를 출력하는 프로그램을 작성하시오. www.acmicpc.net 코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 using System; namespace baekjoon { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string[] arr_input = input.Split(); Console.WriteLine(int.Parse(arr_input[0]) * int.Parse(arr_input[1])); } } } * 1000문제와 ..
1 2 3 4 5 6 7 8 9 10 using System; using static System.Console; class MainApp { static void Main() { Console.WriteLine("Hello World!"); } }
재호우96
'알고리즘' 태그의 글 목록