전체 글 133

[BAEKJOON] 6549번 : 히스토그램에서 가장 큰 직사각형*

문 제 소 스 코 드 #include #include #include #include typedef long long INT; INT Solve(INT *, const int&, const int&); void Histogram (const int& ); int main() { std::ios_base::sync_with_stdio(false); std::cout.tie(NULL); std::cin.tie(NULL); int N; while (true) { std::cin >> N; if (0 == N) return 0; Histogram(N); } return 0; } void Histogram(const int& n) { INT *height{ new INT[n] }; for (int i = 0; i..