일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 머신러닝 기초
- 앤비디아 드라이버
- GPU 가속
- OJ
- 딥러닝
- 텐서플로
- nVidia CUDA
- 앤비디아
- IOT
- git
- 깃허브 처음
- Mobius Server
- 1st prize
- Online judge
- nCube
- github
- 사이킷런
- Ocean Developer
- cudnn
- 창상수령주 포에버
- 머신러닝
- 제 5회 모비우스 대회
- 임베디드
- 백준
- 케라스
- 백준 15552
- 대상
- KETI
- 사물인터넷
- java
Archives
- Today
- Total
장효창의 낙서
[Java] 백준 10950번 : A + B - 3 본문
import java.util.Scanner;
public class bj10950 {
public static void main(String[] args){
int cycle, A, B;
Scanner scanner = new Scanner(System.in);
cycle = scanner.nextInt();
int[] arr = new int[cycle];
for(int i=0;i<cycle;i++){
A = scanner.nextInt();
B = scanner.nextInt();
arr[i] = A+B;
}
for(int num : arr){
System.out.println(num);
}
// for(int num=0; num<arr.length;num++){
// System.out.println(arr[num]);
// }
}
}
'코딩 문제 > 백준' 카테고리의 다른 글
[Java] 백준 15552번 : 빠른 A + B (0) | 2022.01.03 |
---|---|
[Java] 백준 8393번 : 합 (0) | 2022.01.03 |
[Java] 백준 2739번 : 구구단 (0) | 2022.01.03 |
[Java] 백준 2884번 : 알람 시계 (0) | 2022.01.03 |
[Java] 백준 14681번 : 사분면 고르기 (0) | 2022.01.03 |
Comments