16236 Samsung sw test 코드 #include <iostream> #include <list> #define MAX_WIDTH 20 using namespace std; typedef struct Location { int row; int col; int distance; bool operator &l...
16235 Samsung sw test
16235 Samsung sw test 코드 #include <iostream> #include <algorithm> #include <vector> #define MAX_WIDTH 10 using namespace std; typedef struct Tree { int age; bool isAlive; b...
16234 Samsung sw test
16234 Samsung sw test 코드 #include <iostream> #include <list> #include <cstring> #define MAX_WIDTH 50 using namespace std; typedef struct Location { int row; int col; } Locat...
15686 Samsung sw test
15686 Samsung sw test 코드 #include <iostream> #define MAX_WIDTH 50 #define MAX_CHIKEN 13 using namespace std; typedef struct Location { int row; int col; } Location; int width, maxChike...
15685 Samsung sw test
15685 Samsung sw test 코드 #include <iostream> #include <vector> #define MAP 101 #define MAX_DRAGON 20 #define MAX_GENERATION 10 using namespace std; typedef struct Location { int ro...
15684 Samsung sw test
15684 Samsung sw test 코드 #include <iostream> #define MAX_VERTICAL 10 #define MAX_HORIZONTAL 30 #define MAX_LINE 270 using namespace std; typedef struct Ladder { bool left; bool right; }...
15683 Samsung sw test
15683 Samsung sw test 코드 #include <iostream> #include <cstring> #define MAX_WIDTH 8 #define WALL 6 #define BLINDSPOT 0 using namespace std; typedef struct CCTV { int row; int col;...
15486 퇴사2
15486 퇴사2 코드 #include <iostream> using namespace std; int N, T[1500000], P[1500000], DP[1500000]; int dp(int deep); int max(int a, int b) { return a > b ? a : b; } int main() { ios:...
14891 Samsung sw test
14891 Samsung sw test 코드 #include <iostream> #include <cstdio> #define MAX_ROTATE 100 #define LEFT 6 #define RIGHT 2 using namespace std; int command[MAX_ROTATE][2]; int gear[4][8];...
14890 Samsung sw test
14890 Samsung sw test 코드 #include <iostream> #include <cstring> #define MAX_N 100 using namespace std; int map[MAX_N][MAX_N]; int width; int need; int checkEveryArr(); bool checkSi...