Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- BOJ
- 코딩테스트
- FillAmount
- DontDestroyOnLoad()
- API
- 백준
- 백준알고리즘
- FillMethod
- Awake()
- JSP
- iamport
- Unity
- EOF
- javascript
- 결제연동
- FillOrigin
- 아임포트
- 알고리즘
- learning javascript
- image
- 카카오페이
- 바벨
- 린트
- ajax
- 싱글톤
- Destroy()
- java
- web
Archives
- Today
- Total
IT는 개발자
백준 알고리즘 [BOJ] 11021번: A+B - 7 본문
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
public class ABprint {
public static void main(String[] args) {
int sum = 0;
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
for(int i=0;i<a;i++) {
int num1 = scan.nextInt();
int num2 = scan.nextInt();
sum = num1+num2;
System.out.println("Case #"+(i+1)+": "+ sum);
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
|
cs |
백준 알고리즘 문제
https://www.acmicpc.net/problem/11021
11021번: A+B - 7
각 테스트 케이스마다 "Case #x: "를 출력한 다음, A+B를 출력한다. 테스트 케이스 번호는 1부터 시작한다.
www.acmicpc.net
사용언어
java 자바
'백준알고리즘' 카테고리의 다른 글
알고리즘 정리 (0) | 2021.04.01 |
---|---|
백준 알고리즘 [BOJ] 10951번: A+B - 4 (0) | 2019.09.17 |
백준 알고리즘 [BOJ] 10871번: X보다 작은 수 (0) | 2019.09.17 |
백준 알고리즘 [BOJ] 2742번: 기찍 N (0) | 2019.09.17 |
Comments