백준 알고리즘 단계별(55)
-
백준 BOJ C# 9488
출제 링크 : https://www.acmicpc.net/problem/9498 9498번: 시험 성적 시험 점수를 입력받아 90 ~ 100점은 A, 80 ~ 89점은 B, 70 ~ 79점은 C, 60 ~ 69점은 D, 나머지 점수는 F를 출력하는 프로그램을 작성하시오. 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 27 28 29 30 31 32 using System; using static System.Console; namespace baekjoon { class Program { static void Main(string[] args) { string input = Console.Rea..
2020.01.09 -
백준 BOJ C# 1330
출제 링크 : https://www.acmicpc.net/problem/1330 1330번: 두 수 비교하기 두 정수 A와 B가 주어졌을 때, A와 B를 비교하는 프로그램을 작성하시오. 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 using System; using static System.Console; namespace baekjoon { class Program { static void Main(string[] args) { string inputA = Console.ReadLine(); string[] inputA_arr = inputA.Split(); if (int.Parse(inputA_..
2020.01.09 -
백준 BOJ C# 2588
출제 링크 : 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(); // 두번째 ..
2020.01.08 -
백준 BOJ C# 10430
출제 링크 : 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..
2020.01.08 -
백준 BOJ C# 10869
출제 링크 : https://www.acmicpc.net/problem/10869 10869번: 사칙연산 두 자연수 A와 B가 주어진다. 이때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오. www.acmicpc.net 코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 using System; using static System.Console; namespace baekjoon { class Program { static void Main(string[] args) { string input = ReadLine(); string[] arr_input = input.Split(); WriteLine(int.Parse..
2020.01.08 -
백준 BOJ C# 1008
출제 링크 : https://www.acmicpc.net/problem/1008 1008번: 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(double.Parse(arr_input[0]) / double.Parse(arr_input[1])); } } } * 소수 9..
2020.01.08