9095 1,2,3 더하기 코드 #include <iostream> using namespace std; int tc; long long save[12]; long long dp(int n); int main() { cin >> tc; while (tc--) { int n; cin >> n; ...
5373 Samsung sw test
5373 Samsung sw test 코드 #include <iostream> #include <cstring> #define MAX_ROTATE 1000 #define MAX_TESTCASE 100 #define WHITE 100 #define YELLOW 200 #define RED 300 #define ORANGE 400...
3568 iSharp
3568 iSharp 코드 #include <iostream> #include <string> using namespace std; string def, append; char input[130]; void print(); int main() { cin.getline(input, 130); int i = 0; w...
2623 MusicPropram
2623 MusicPropram 코드 #include <iostream> #include <vector> #include <list> #include <cstring> #define MAX_SINGER 1000 #define MAX_PD 100 using namespace std; typedef str...
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...