본문 바로가기

분류 전체보기406

백준 10869번 사칙연산 정답 코드 문제두 자연수 A와 B가 주어진다. 이때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오. 입력두 자연수 A와 B가 주어진다. (1 ≤ A, B ≤ 10,000)출력첫째 줄에 A+B, 둘째 줄에 A-B, 셋째 줄에 A*B, 넷째 줄에 A/B, 다섯째 줄에 A%B를 출력한다.1. Python# 두 정수 A와 B를 입력받아 다섯 가지 연산 결과를 각각 출력A, B = map(int, input().split())print(A + B) # 덧셈 결과print(A - B) # 뺄셈 결과print(A * B) # 곱셈 결과print(A // B) # 정수 나눗셈 결과print(A % B) # 나머지 결과2. Javaimport java.util.Scanner;pu.. 2024. 10. 5.
백준 1008번 A/B 정답 코드 문제두 정수 A와 B를 입력받은 다음, A/B를 출력하는 프로그램을 작성하시오.입력첫째 줄에 A와 B가 주어진다. (0 출력첫째 줄에 A/B를 출력한다. 실제 정답과 출력값의 절대오차 또는 상대오차가 10-9 이하이면 정답이다.정답 코드1. Python# 두 정수 A와 B를 입력받아 A / B의 결과를 출력A, B = map(int, input().split())print(A / B)2. Javaimport java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 두 정수 A와 B를 입력받기 int A = s.. 2024. 10. 5.
백준 10998번 - AxB 정답 코드 문제두 정수 A와 B를 입력받은 다음, A×B를 출력하는 프로그램을 작성하시오.입력첫째 줄에 A와 B가 주어진다. (0 출력첫째 줄에 A×B를 출력한다.정답 코드1. Python# 두 정수 A와 B를 입력받아 A * B의 결과 출력A, B = map(int, input().split())print(A * B) 2. Javaimport java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 두 정수 A와 B를 입력받기 int A = sc.nextInt(); int B = sc.nextInt(); .. 2024. 10. 5.
백준 1001번 - A-B 정답 코드 문제두 정수 A와 B를 입력받은 다음, A-B를 출력하는 프로그램을 작성하시오.입력첫째 줄에 A와 B가 주어진다. (0 출력첫째 줄에 A-B를 출력한다.정답 코드 1. Python# 두 정수 A와 B를 입력받아 A - B의 결과 출력A, B = map(int, input().split())print(A - B)2. Javaimport java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 두 정수 A와 B를 입력받기 int A = sc.nextInt(); int B = sc.nextInt(); .. 2024. 10. 4.
백준 1000번 - A+B 정답 코드 문제두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.입력첫째 줄에 A와 B가 주어진다. (0 출력첫째 줄에 A+B를 출력한다.정답 코드1. Python# 입력받기A, B = map(int, input().split())# 합 출력print(A + B)2. Javaimport java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 두 정수 입력받기 int A = sc.nextInt(); int B = sc.nextInt(); // 합 출력 Sys.. 2024. 10. 4.
백준 2557번 - Hello World 정답 코드 문제Hello World!를 출력하시오.입력없음출력Hello World!를 출력하시오. 정답 코드1. Pythonprint("Hello World!")2. Javapublic class Main { public static void main(String[] args) { System.out.println("Hello World!"); }}3. C++#include using namespace std;int main() { cout 4. JavaScriptconsole.log("Hello World!");5. C#include int main() { printf("Hello World!\n"); return 0;} 2024. 10. 4.
안드로이드 스튜디오 run/debug configurations 프로젝트를 받아서 실행하거나, 갑자기 빌드를 하려는데 Configuration이 없는 경우가 있다.방법 1안드로이드 스튜디오 File 메뉴 -> Sync project with Gradle Files 항목을 클릭하고 기다리면 생긴다 방법 2androidApp 부분에 Add Configurations...가 뜰 것이다. 이걸 클릭하고 Run/Debug Configurations 창을 띄운다.창 왼쪽 상단 + 버튼을 눌러서 Android App에 conf를 추가해주면 된다.  만약 가 뜬다면 가져온 프로젝트 원본을 보면 settings.gradle 파일이 없을 수 있다. build.gradle이라던지 파일 개수 또는 해당 내용을 확인해보자. 2024. 9. 19.
Jin's Heartfelt Chuseok Greetings: Reflecting on His First Holiday After Military Discharge On the 16th, Jin greeted his fans through a Chuseok message video posted on the fan community platform, Weverse. He warmly conveyed his holiday wishes, saying, "The joyful Chuseok holiday has arrived. I hope you all enjoy delicious holiday food and have a Chuseok filled with happiness with your loved ones." In the video, Jin shared his thoughts on celebrating his first holiday after being discha.. 2024. 9. 17.
The Art of Saying No Saying no is a powerful skill that is often overlooked but is essential for maintaining balance, managing time effectively, and protecting your mental and emotional well-being. While it can be challenging to decline requests, especially when you want to be helpful or fear disappointing others, mastering the art of saying no is crucial for personal and professional growth. It allows you to priori.. 2024. 9. 16.