일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- spotify
- CS
- C++
- SECS
- 회원가입
- regression
- 회귀
- 스포티파이
- finance & economics
- java
- SECS-II
- 프로그래머스
- c
- Bitget
- Spring JPA
- 자바
- Gem
- Computer Science
- SECS/GEM
- 백준
- Baekjoon
- Spring
- 비트겟
- SW Expert Academy
- programmers
- spring boot
- python
- modern c++
- 파이썬
- SWEA
Archives
- Today
- Total
비버놀로지
[BAEKJOON 백준] 1000 A+B 본문
728x90
반응형
1000번: A+B
두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
Scanner 를 이용해서 입력을 받고, 합을 출력해 준다.
import 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();
System.out.println(a+b);
}
}
728x90
반응형
'ALGORITM > JAVA' 카테고리의 다른 글
[BAEKJOON 백준] 1008 A/B (0) | 2021.01.10 |
---|---|
[BAEKJOON 백준] 1001 A-B (0) | 2021.01.10 |
[Programmers 프로그래머스] 17682 [1차] 다트 게임 (0) | 2021.01.10 |
[Programmers 프로그래머스] 42889 실패율 (0) | 2021.01.10 |
[Programmers 프로그래머스] 17681 [1차] 비밀지도 (0) | 2021.01.10 |
Comments