-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from Source-Machine-Ent/ningpop
[#148] 6416 트리인가? - 미해결
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# 2022.05.20 | ||
# 풀이 시간 10분 00초 | ||
# 채점 결과: | ||
# 시간복잡도: | ||
# 문제 링크: https://www.acmicpc.net/problem/6416 | ||
|
||
import sys | ||
|
||
input = sys.stdin.readline | ||
|
||
def is_tree(tree: list) -> bool: | ||
pass | ||
|
||
case = 1 | ||
while True: | ||
tree = [] | ||
while True: | ||
u, v = map(int, input().split()) | ||
if u == -1 and v == -1: | ||
exit() | ||
if u == 0 and v == 0: | ||
break | ||
|
||
if is_tree(tree): | ||
print(f'Case {case} is a tree.') | ||
else: | ||
print(f'Case {case} is not a tree.') | ||
case += 1 |