[백준] 2493번 탑 (= tower) - 재우스 프로그래밍 (C 언어)
문제 링크 :www.acmicpc.net/problem/2493 #include #include #include #define DEBUG 1 #define MAX_STACK_SIZE 500000 #define MAX_TOWER_HEIGHT 10000000 typedef struct _node { int height; int position; } Node; typedef struct _stack { Node mem[MAX_STACK_SIZE]; int Top; } stack; bool empty(stack *); void pop(stack *); void push(stack *, Node *); size_t size(stack *); Node *top(stack *); void initStack(stack..
2021. 2. 1. 10:58