diff --git "a/suhyun113/\355\212\270\353\246\254/7-suhyun113.py" "b/suhyun113/\355\212\270\353\246\254/7-suhyun113.py" deleted file mode 100644 index f12a44f..0000000 --- "a/suhyun113/\355\212\270\353\246\254/7-suhyun113.py" +++ /dev/null @@ -1,27 +0,0 @@ -# 2716 : 원숭이 매달기 - -N = int(input()) # 테스트 케이스의 개수 -results = [] - -for _ in range(N): - s = input().strip() - len_s = len(s) - - depth = 0 - max_depth = 0 - - for i in range(len_s): - if (s[i] == '['): - depth += 1 - if (depth > max_depth): - max_depth = depth - elif (s[i] == ']'): - depth -= 1 - - result = 1 #나무 꼭대기 도달위해 최소 한 마리 원숭이 필요 - for _ in range(max_depth): - result *= 2 - results.append(result) - -for result in results: - print(result) \ No newline at end of file