본문 바로가기

반응형

전체 글

OJ 1193 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32#include #include #include #include char str[100][100] = { 0, }; int main() { int n; scanf("%d", &n); for (int i = 0; i 더보기
OJ 1195 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37#include #include #include char word[20][100]; int main(void) { int n; scanf("%d", &n); for (int i = 0; i 더보기
네트워크 핑퐁 업데이트 소스코드 클라이언트 소스코드 서버소스코드 더보기
Hasing 예제코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 12.. 더보기
Quick sort 소스코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81#include #define SZ 11 //int a[SZ] = {35, 40, 50, 60, 70, 14, 100, 3, 4, 5, 6}; int a[SZ] = { 35, 40, 40, 40, 40, 40, 4, 4, 3, 4, 4 }; void showAll() { for (int i = .. 더보기
바이오리듬 프로그램 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99#include #include #define TODAY_YEAR 2016 #define TODAY_MONTH 6 #define TODAY_DAY 9 #define MYPI 3.141592 // 19.. 더보기
Network pingpong server and client Source code of Server side Source code of Client side How to execute:1. start server first by selecting Test.java and right-clicking "Run As" Java Application2. start client by selecting Test.java and right-clicking "Run As " Java Application 더보기
Binarization: 사진을 흑백영상으로 바꾸기 Image Binarization (이미지 이진화) Grey-scale image는 한 픽셀당 8비트 밖에 차지하지 않기 때문에 컬러이미지보다 크기가 작아 처리하기 쉽다. Binary image의 경우, 픽셀이 가질 수 있는 색은 단 2가지, 흰색 혹은 검정색뿐이다. 따라서 한 픽셀당 1비트만 있어도 되기 때문에, Grey-scale image보다 처리가 더 간편하다. 실제로 많은 영상처리 기술들이 binary image를 대상으로 하고 있기 때문에, 입력이미지가 컬러일 경우, 이를 binary image로 변환하는 것이 필요하다. Binary image는 컬러이미지 뿐만 아니라 다양한 영상 (비컬러 메디컬 이미지)들로부터 생성이 가능하므로, 응용범위가 매우 넓다고 할 수 있다. 우선, 컬러 사진을 흑백.. 더보기
OJ 1184 모기, 지카바이러스 문제 답 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58#include // printf, scanf #include int space[5][5][5] = { 0 }; int dist = 100000000; void checkDistance(int _i, int _j, int _k) { for (int i = 0; i 더보기
network pingpong serer 더보기
network pingpong client 더보기
Priority Queue, Min Heap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111#include #define SZ 100 int heap[SZ]; int lastIdx = 0; // retur.. 더보기
네트워킹 예제 Server.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36package univ.inu.embedded; import java.net.*; import java.io.*; public class Server { public Server() { try { ServerSocket ss = new ServerSocket(9000); while (true) { Socket s = ss.accept(); (new ServerThread(s)).start(); } } catch (IOException e) { e.printStackTrace(); } } public static.. 더보기
BST를 이용한 영어/한글 단어관리 프로그램 소스 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108#include #include struct node { int data; struct node *left; struct node *r.. 더보기
혼자 탁구 소스코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69package univ.inu.embedded; public class PoolballThread extends Thread { private PoolballPanel pp = null; private boolean stopped = false; public PoolballThread(PoolballPanel _pp) { pp = _pp; } public v.. 더보기

반응형