Home
디피의 개발일지
Cancel

1748 수 이어쓰기 1

1748 수 이어쓰기 1 코드 #include <iostream> using namespace std; int N; int main() { cin >> N; long long result = 0; int d = 1, count = 0; while (N / d != 0) { // 1~9 : 1 / 10~99 :...

17142 Samsung sw test

17142 Samsung sw test 코드 #include <iostream> #include <cstring> #include <vector> #include <list> #include <algorithm> #define MAX_WIDTH 50 #define WALL 1 using nam...

17140 Samsung sw test

17140 Samsung sw test 코드 #include <iostream> #include <algorithm> #include <cstring> #include <vector> #define MAX_NUM 101 using namespace std; typedef struct Cell { in...

1629 곱셈

1629 곱셈 코드 #include <iostream> using namespace std; long long A, B, C; long long result = 1; int main() { cin >> A >> B >> C; while (B != 0) { if (B % 2 == 1) { ...

16236 Samsung sw test

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; }...