Home
디피의 개발일지
Cancel

2473 Three Liquid

2473 Three Liquid 코드 #include <iostream> #include <algorithm> #include <set> #define MAX_LIQUID 5000 using namespace std; int liquid[MAX_LIQUID]; int numOfLiquid; int threeLiq...

20058 Samsung sw test

20058 Samsung sw test 코드 #include <iostream> #include <list> #include <cstring> #define MAX_WIDTH 64 #define MAX_COMMAND 1000 using namespace std; typedef struct Location { i...

20057 Samsung sw test

20057 Samsung sw test 코드 #include <iostream> #define MAX_WIDTH 499 using namespace std; int map[MAX_WIDTH][MAX_WIDTH]; bool visit[MAX_WIDTH][MAX_WIDTH]; int width, amountOfSand = 0; int t...

20056 Samsung sw test

20056 Samsung sw test 코드 #include <iostream> #include <cstring> #include <vector> #define MAX_WIDTH 50 using namespace std; typedef struct Fire { int mass; int direction; //...

19238 Samsung sw test

19238 Samsung sw test 코드 #include <iostream> #include <list> #include <vector> #include <algorithm> #define MAX_WIDTH 20 #define MAX_CUSTOMER 400 #define CUSTOMER 123 usi...

19236 Samsung sw test

19236 Samsung sw test 코드 #include <iostream> #include <cstring> #define WIDTH 4 #define SHARK 100 #define BLANK -1 using namespace std; typedef struct Fish { int num; int row; in...

1799 bishop

1799 bishop 코드 #include <iostream> #include <cstring> #define MAX_N 10 using namespace std; int map[MAX_N][MAX_N]; bool tempMap[MAX_N][MAX_N] = { 0, }; int width, maxCount = 0; voi...

17825 Samsung sw test

17825 Samsung sw test 코드 #include <iostream> #include <vector> using namespace std; typedef struct Map { int score; int next; int blueNext; } Map; int dice[10]; Map map[33] = { {...

17822 Samsung sw test

17822 Samsung sw test 코드 #include <iostream> #include <cstring> #include <vector> #define MAX_BOARD 50 #define MAX_TURN 50 using namespace std; int board[MAX_BOARD][MAX_BOARD]...

17779 Samsung sw test

17779 Samsung sw test 코드 #include <iostream> #define MAX_WIDTH 21 using namespace std; int map[MAX_WIDTH][MAX_WIDTH]; int width; int minDifference(); int getMin(int d1, int d2, int x, in...