백준 알고리즘 단계별

출제 링크 : 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/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..
출제 링크 : 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..
출제 링크 : 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문제와 ..
출제 링크 : https://www.acmicpc.net/problem/1001 1001번: 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])); } } } * 다를껀 없다. 100..
출제 링크 : https://www.acmicpc.net/problem/1000 1000번: A+B 문제 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. 입력 첫째 줄에 A와 B가 주어진다. (0 < A, B < 10) 출력 첫째 줄에 A+B를 출력한다. 예제 입력 1 복사 1 2 예제 출력 1 복사 3 힌트 여기를 누르면 1000번 예제 소스를 볼 수 있습니다.... 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();..
출제 링크 : https://www.acmicpc.net/problem/10172
출제 링크 : https://www.acmicpc.net/problem/10718 10718번: We love kriii ACM-ICPC 인터넷 예선, Regional, 그리고 World Finals까지 이미 2회씩 진출해버린 kriii는 미련을 버리지 못하고 왠지 모르게 올 해에도 파주 World Finals 준비 캠프에 참여했다. 대회를 뜰 줄 모르는 지박령 kriii를 위해서 격려의 문구를 출력해주자. www.acmicpc.net 코드 1 2 3 4 5 6 7 8 9 10 11 using System; using static System.Console; class MainApp { static void Main() { Console.WriteLine("강한친구 대한육군"); Console.Write..
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
'백준 알고리즘 단계별' 카테고리의 글 목록 (6 Page)