Written by
java-style
on
on
1000 : A+B
1000 : A+B
728x90
한국어
시간 제한메모리 제한제출정답맞은 사람정답 비율
2 초 128 MB 471639 199391 143633 43.120%
문제
두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
입력
첫째 줄에 A와 B가 주어진다. (0 < A, B < 10)
출력
첫째 줄에 A+B를 출력한다.
예제 입력 1 복사
1 2
예제 출력 1 복사
3
출처 : https://www.acmicpc.net/problem/1000
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); }//main end }
728x90
from http://d-12k7353.tistory.com/306 by ccl(A) rewrite - 2021-10-10 23:01:07