목록CSE (86)
한 걸음 두 걸음
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/cakKm2/btqx6YWckIf/89rIyNjwxmiPlKdqsACkVk/img.png)
0. pre-test 자신이 사용하고 있는 PC의 IP 주소는? 172.19.83.197 자신의 PC가 연결된 라우터의 IP 주소는?(=게이트웨이주소) 172,19.83.254 자신의 PC의 MAC 주소는 ? D8-9C-67-86-47-43 자신의 PC가 연결된 라우터의 MAC 주소는? 00-e0-b1-88-2f-00 PC가 IP 주소와 MAC 주소를 2개 모두 사용하는 이유는? public IP로 들어온 다음 같은 네트워크 내 목적지를 알기위해 확인 방법 : cmd창에서 ipconfig -all 현재 학교WiFi를 잡아서 사용하고 있으므로 무선 LAN 어댑터 Wi-Fi를 확인해주겠습니다. arp -a : 자신의 PC가 연결된 라우터의 MAC 주소 확인 1. Introduction 요즘은 인터넷 네트워크..
에러코드 : java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 원인 : String[] tokenStrPlus = str.split("+"); 해결 : String[] tokenStrPlus = str.split("\\+"); 전체코드 : import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String getEx = sc.nextLine(); String[] tokenStrMinus = getEx.split("-"); ..
import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Queue queue = new LinkedList(); int testCase = sc.nextInt(); int pushValue = 0; for(int i = 0 ; i < testCase; i++) { String command = sc.next(); if(command.equals("push")) { pushValue = sc.nextInt(); queue.add(pushValue); } else { switch(command) { case "pop":..
import java.util.*; import java.lang.*; public class Main { static boolean[][] board = new boolean [50][50]; static int[][] dir = {{-1, 0},{0, -1},{0, 1},{1, 0}}; static int row,col; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt; //입력받을 배추갯수 int result = 0; //결과값 int testCase = sc.nextInt(); //테스트케이스만큼 for(int test = 0; test < testCase; test++) { row = sc...
import java.io.IOException; import java.math.BigInteger; import java.text.SimpleDateFormat; import java.util.*; import java.lang.*; class Pair { int pos; int cnt; public Pair(int n, int c) { pos = n; cnt = c; } } public class Main { static boolean[] visited = new boolean [100001]; public static void main(String[] args) { Scanner sc = new Scanner(System.in); Queue q = new LinkedList(); int n = sc..
백준 7894 import java.io.IOException; import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int testCase = sc.nextInt(); BigInteger result; for (int j = 0; j < testCase; j++) { int num = sc.nextInt(); int count = 0; result = BigInteger.ONE; // 팩토리얼값으로 만들어줌 for (int i = 1; i
import java.io.IOException; import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); BigInteger result = new BigInteger("1"); for(int i = 1 ; i
import java.io.IOException; import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int count = 0; String resultStr; test t = new test(); resultStr = t.factorial(n).toString(); for(int i = resultStr.length()-1; i > 0; i--) { if(resultStr.charAt(i) == '0') count++; else break; } System..