본문 바로가기

전체 글

(106)
(JAVA) 백준 알고리즘 3단계 11022번 : A + B - 8 소스 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan = new Scanner(System.in); int num = scan.nextInt(); for(int i=1; i0 && b
(JAVA) 백준 알고리즘 3단계 11021번 : A + B - 7 실수한 점 : ":" 에 공백 안넣어서 계속 틀렸다^^. (": ") 소스 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan = new Scanner(System.in); int num = scan.nextInt(); for(int i=1; i0 && b
(JAVA) 백준 알고리즘 3단계 2742번 : 기찍N 입력조건 하는 것을 계속 까먹ㄴ느다 소스 1 2 3 4 5 6 7 8 9 10 11 12 13 import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); if(a=1){ for(int i=a; i>=1; i--){ System.out.println(i); } } } } http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
(JAVA) 백준 알고리즘 3단계 2741번 : N 찍기 소스 1 2 3 4 5 6 7 8 9 10 11 import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); for(int i=1; i
(JAVA) 백준 알고리즘 3단계 15552번 : 빠른 A+B Scanner와 System.out.println 대신 BufferReader와 BufferWriter를 사용. 이건 도저히 모르겠어서 다른 소스를 보고 풀었다. 오늘은 이 문제를 좀 더 보면서 마무리 지어야겠다. 소스 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import java.util.*; import java.io.*; public class Main{ public static void main(String[]args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWrite..
(JAVA) 백준 알고리즘 3단계 8393번 : 합 이런 문제에 시간 생각 이상으로 쓸 때마다 더 열심히 해야겠다는 생각이 든다. 소스 1 2 3 4 5 6 7 8 9 10 11 12 13 import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int sum=0; for(int i=1; i
(JAVA) 백준 알고리즘 3단계 10950번 : A+B - 3 소스 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int j = scan.nextInt(); for(int i = 0; i
(JAVA) 백준 알고리즘 3단계 2739번 : 구구단 소스 1 2 3 4 5 6 7 8 9 10 11 import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); for(int b=1; b