본문 바로가기

분류 전체보기854

네트워크 모델 프로토콜은 모듈화 , 계층화 되어있다. 모듈이라는 작은 조각들로 구성되어있고, 계층이라는 관계로 구성하고 있다. 프로토콜만 그런것이 아니라, 소프트웨어를 개발한다고하면 기능별로 쪼개는 작업을 한다. (함수 사용) main 함수에 다 넣는것이아니라 함수를 사용해 기능을 쪼갠다. 즉 함수가 하나의 모듈이다. 함수를 호출한 값으로 결과를 리턴해주는 것이 응답 이다. 모듈 사이에는 요청과 응답으로 구성된다. 계층 구조를 갖는다는 것은 바로 밑에 있는 계층에만 요청을 한다. 프로토콜을 만든다고 가정 프로토콜의 기능(Function) Address Error Control Flow Control Routing 두 개의 컴퓨터를 물리적으로 연결해도, 전송매체 프로그램이 양쪽에서 동작을 해야 프로그램을 통해서 데이터를.. 2021. 9. 27.
백준 1476 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main1476 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int E = Integer.parseInt(st.nextToken()); int S = Integer.. 2021. 9. 25.
백준 3085 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main3085 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); //N의 크기 char [][] A = new char[N][N]; for(int i=0; i 2021. 9. 23.
백준 1271 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigInteger; import java.util.StringTokenizer; public class Main1271 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); BigInteger n = new BigIntege.. 2021. 9. 21.
백준 2309 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main2309 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = 9; int[] A = new int[N]; int sum = 0; for(int i=0; i 2021. 9. 16.
백준 17404 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main17404 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); //집의 수 N int[][] D = new int[N+1][3]; int[][] A = new int[N+1][3]; for(i.. 2021. 9. 15.