문제(출처: https://www.acmicpc.net/problem/26111) 문제 풀이 루트에서 모든 leaf node까지의 거리의 합을 구하라 * leaf node : ) 바로 앞에 (가 오면 leaf node이다.* 루트에서 leaf node까지의 거리 == stack의 크기 my solution (Java)import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.Stack;public class _26111_ { // Parentheses Tree public static void main(String[] args) throws IOException { Bu..