Coding Test(Algorithms)

http://boj.kr/2557 2557번: Hello World Hello World!를 출력하시오. www.acmicpc.net import java.util.*; public class BOJ2557 { public static void main(String args[]){ System.out.print("Hello world!"); } }
http://boj.kr/11022 11022번: A+B - 8 각 테스트 케이스마다 "Case #x: A + B = C" 형식으로 출력한다. x는 테스트 케이스 번호이고 1부터 시작하며, C는 A+B이다. www.acmicpc.net import java.util.*; public class BOJ11022 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T=sc.nextInt(); for(int i=0;i
http://boj.kr/10953 10953번: A+B - 6 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. www.acmicpc.net import java.util.*; import static java.lang.Integer.parseInt; public class BOJ10953 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T=sc.nextInt(); while(T-->0){ String s=sc.next(); String num[] = s.split(","); int a = parseInt(num[0]); int b = parseInt(num[1]); Syst..
http://boj.kr/10951 10951번: A+B - 4 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. www.acmicpc.net import java.util.*; public class BOJ10951 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a + b); }} }
http://boj.kr/10950 10950번: A+B - 3 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. www.acmicpc.net import java.util.*; public class BOJ10950 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t=sc.nextInt(); for(int i=0;i
boj.kr/1000 import java.util.*; public class BOJ1000{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); System.out.print(a + b); } }
RED BEAN
'Coding Test(Algorithms)' 카테고리의 글 목록 (7 Page)