-
2018.03.30 해본 것/Baekjoon
[1003] 피보나치 함수
JAVA import java.util.Scanner; public class Q1003 { public static int dp[][]=new int[41][2]; public static void main(String[] args) { Scanner sc =new Scanner(System.in); int c =sc.nextInt(),i,tmp; for(i=0;i
-
2018.03.29 해본 것/Baekjoon
[1002] 터렛
JAVA import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc =new Scanner(System.in); int c =sc.nextInt(),i; for(i=0;ir) { //반지름끼리 합이 점과 점사이의 거리보다 작을 때 / 교점이 없다. System.out.println("0"); }else if(d
-
2018.03.29 해본 것/Baekjoon
[1001] A-B
C void main(){ int a,b; scanf("%d %d",&a,&b); printf("%d",a-b); } JAVA import java.util.Scanner; public class Main { public static void main(String[] args) { scanner in = new Scanner(System.in); System.out.print(in.nextInt()-in.nextInt()); } } import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a=in.nextInt(); int b=in.n..
-
2018.03.29 해본 것/Baekjoon
[1000] A+B
JAVA import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print(in.nextInt()+in.nextInt()); } } import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a=in.nextInt(); int b=in.nextInt(); System.out.print(a+b); } } C void main() { int a,b; scan..